mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-01-18 14:14:50 +08:00
fix: node env in workflows
This commit is contained in:
parent
ca85f63781
commit
6899fae74c
5
.github/workflows/deploy.yml
vendored
5
.github/workflows/deploy.yml
vendored
@ -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
|
||||
|
1
.github/workflows/frontend_build.yml
vendored
1
.github/workflows/frontend_build.yml
vendored
@ -61,4 +61,5 @@ jobs:
|
||||
- name: Build frontend
|
||||
env:
|
||||
DEBUG: "hangar:*"
|
||||
NODE_ENV: "production"
|
||||
run: (cd frontend && pnpm build)
|
||||
|
Loading…
Reference in New Issue
Block a user