fix(ci): force bun + pin wrangler in Deploy workflow#3
Open
dtTheodore wants to merge 1 commit into
Open
Conversation
The deploy-worker job runs wrangler-action with workingDirectory: apps/api/cloudflare, which has no lockfile. The action infers npm, which fails on bun's `workspace:*` protocol (EUNSUPPORTEDPROTOCOL) before it can deploy. Set packageManager: bun on both wrangler-action steps so installs use bun (which handles workspace:*), and pin wranglerVersion to 4.95.0 to match the project's compatibility_date and avoid the action's stale 3.90.0 default. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why the Deploy workflow has failed since the first run
Two independent faults, both present from the very first
Deployrun:1.
deploy-worker— npm chokes onworkspace:*(fixed in this PR)wrangler-actionruns withworkingDirectory: apps/api/cloudflare, which has no lockfile. The action therefore infers npm and runsnpm i wrangler@…, which walks up toapps/api/package.jsonand dies on bun'sworkspace:*protocol:Fix: set
packageManager: bunon bothwrangler-actionsteps (bun handlesworkspace:*, proven by the pages job which already runs from the repo root with bun), and pinwranglerVersion: "4.95.0"to match the project'scompatibility_date(2026-05-21) and avoid the action's stale 3.90.0 default.2.
deploy-pages— CloudflareAuthentication error [code: 10000](fixed via secrets, not in this diff)The build succeeded but
wrangler pages deployfailed authenticating to the Cloudflare API. Resolved out-of-band by setting the repo secretsCLOUDFLARE_API_TOKEN(freshly minted, correctly scoped) andCLOUDFLARE_ACCOUNT_IDto account52cb969c…, which ownscontextmem-backend, D1contextmem, R2contextmem-context, and subdomainpetlofi.Verification
After merge, the on-push
Deployruns. Expected: both jobs pass. Diff is limited to.github/workflows/deploy.yml(+6 lines).