Skip to content

Commit 064b024

Browse files
authored
fix: build Workers before deployment (#70)
## Summary - build all four Worker targets and their workspace dependencies on the clean release runner - ensure Wrangler resolves compiled package exports before publishing ## Decision Build only Cloudflare deployables and their transitive dependencies, leaving the independently deployed web app out of the Worker release job. ## Validation - `actionlint .github/workflows/deploy-cloudflare.yml` - `pnpm exec turbo run build --filter=@cheatcode/agent-worker --filter=@cheatcode/webhooks-worker --filter=@cheatcode/gateway-worker --filter=@cheatcode/preview-proxy` - `git diff --check`
1 parent abb9fbd commit 064b024

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/deploy-cloudflare.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ jobs:
3535
- name: Install dependencies
3636
run: pnpm install --frozen-lockfile
3737

38+
- name: Build Worker release
39+
run: >-
40+
pnpm exec turbo run build
41+
--filter=@cheatcode/agent-worker
42+
--filter=@cheatcode/webhooks-worker
43+
--filter=@cheatcode/gateway-worker
44+
--filter=@cheatcode/preview-proxy
45+
3846
- name: Deploy affected Workers
3947
run: pnpm cloudflare:deploy
4048
env:

0 commit comments

Comments
 (0)