From dd785e59c7f895ca109c5add05370516acb9d7d6 Mon Sep 17 00:00:00 2001 From: Theodore Date: Sun, 7 Jun 2026 11:53:54 +0700 Subject: [PATCH] fix(ci): force bun + pin wrangler in Deploy workflow 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 --- .github/workflows/deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 19035b5..b6e0326 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -45,6 +45,10 @@ jobs: with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + # workingDirectory has no lockfile, so the action would infer npm and choke + # on bun's `workspace:*` deps. Force bun (handles workspace:*) and pin wrangler. + packageManager: bun + wranglerVersion: "4.95.0" workingDirectory: apps/api/cloudflare command: deploy secrets: | @@ -70,4 +74,6 @@ jobs: with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + packageManager: bun + wranglerVersion: "4.95.0" command: pages deploy apps/web/dist --project-name=contextmem --branch=main