From 6899fae74cea1ae42f49d545c51ffb322c5d65c8 Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Thu, 26 Dec 2024 13:57:17 +0100 Subject: [PATCH] fix: node env in workflows --- .github/workflows/deploy.yml | 5 ++++- .github/workflows/frontend_build.yml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 928b0da78..540e3fdb0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,7 +19,6 @@ env: REGISTRY: ghcr.io BRANCH_NAME: ${{ github.head_ref || github.ref_name }} CI: true - NODE_ENV: "production" jobs: build: @@ -103,9 +102,13 @@ jobs: - name: Build frontend (prod) if: ${{ github.ref == 'refs/heads/master' }} run: (cd frontend && pnpm build) + env: + NODE_ENV: "production" - name: Build frontend (staging) if: ${{ github.ref == 'refs/heads/staging' }} run: (cd frontend && pnpm buildStaging) + env: + NODE_ENV: "production" - name: Login to registry uses: docker/login-action@v3 diff --git a/.github/workflows/frontend_build.yml b/.github/workflows/frontend_build.yml index 132b30d59..6206182d9 100644 --- a/.github/workflows/frontend_build.yml +++ b/.github/workflows/frontend_build.yml @@ -61,4 +61,5 @@ jobs: - name: Build frontend env: DEBUG: "hangar:*" + NODE_ENV: "production" run: (cd frontend && pnpm build)