Skip to content

Commit 7a78565

Browse files
committed
deploy(frontend): merge variable injection & build step
1 parent 62e56eb commit 7a78565

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎.github/workflows/frontend-deploy.yml‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
working-directory: ./apps/frontend
5858
run: pnpm install
5959

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

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,5 @@ apps/labrinth/fixtures/demo
7171

7272
*storybook.log
7373
storybook-static
74+
75+
.wrangler/

0 commit comments

Comments
 (0)