fix: node env in workflows

This commit is contained in:
MiniDigger | Martin 2024-12-26 13:57:17 +01:00
parent ca85f63781
commit 6899fae74c
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -61,4 +61,5 @@ jobs:
- name: Build frontend
env:
DEBUG: "hangar:*"
NODE_ENV: "production"
run: (cd frontend && pnpm build)