1
0

deploy(frontend): merge variable injection & build step

This commit is contained in:
Michael H.
2026-01-08 18:13:07 +01:00
parent 62e56eb27e
commit 7a78565c97
2 changed files with 4 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ jobs:
working-directory: ./apps/frontend
run: pnpm install
- name: Inject build variables
- name: Build frontend
working-directory: ./apps/frontend
run: |
if [ "${{ steps.meta.outputs.env }}" == "staging" ]; then
@@ -67,10 +67,7 @@ jobs:
echo "Injecting production variables from wrangler.jsonc..."
jq -r '.vars | to_entries[] | "export \(.key)=\(.value|@sh)"' wrangler.jsonc | source /dev/stdin
fi
- name: Build frontend
working-directory: ./apps/frontend
run: pnpm build
pnpm build
env:
CF_PAGES_BRANCH: ${{ github.ref_name }}
CF_PAGES_COMMIT_SHA: ${{ github.sha }}

2
.gitignore vendored
View File

@@ -71,3 +71,5 @@ apps/labrinth/fixtures/demo
*storybook.log
storybook-static
.wrangler/