Skip to content

Commit

Permalink
fix: node env in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Dec 26, 2024
1 parent ca85f63 commit 6899fae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ env:
REGISTRY: ghcr.io
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
CI: true
NODE_ENV: "production"

jobs:
build:
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/frontend_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ jobs:
- name: Build frontend
env:
DEBUG: "hangar:*"
NODE_ENV: "production"
run: (cd frontend && pnpm build)

0 comments on commit 6899fae

Please sign in to comment.