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)