From 247bc5370913acb37c803450b95a412d62cbbc35 Mon Sep 17 00:00:00 2001 From: DoubtAgain Date: Wed, 13 May 2026 00:21:38 +0900 Subject: [PATCH] fix(ci): pin wrangler 4.90.0 in deploy action cloudflare/wrangler-action@v3 ignores the project's installed wrangler and runs its bundled 3.90.0, which predates .jsonc config support (added in 3.91). As a result both env.production and main fields in wrangler.jsonc go unread and the production deploy aborts with "No environment found" / "Missing entry-point". Pin wranglerVersion to 4.90.0 (matches yarn.lock) and set packageManager=yarn so the action installs through the same toolchain as the build:worker step. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/deploy-cloudflare.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-cloudflare.yml b/.github/workflows/deploy-cloudflare.yml index 764fc2b..d2cabd5 100644 --- a/.github/workflows/deploy-cloudflare.yml +++ b/.github/workflows/deploy-cloudflare.yml @@ -90,4 +90,6 @@ jobs: with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + wranglerVersion: '4.90.0' + packageManager: yarn command: deploy --env ${{ needs.resolve-env.outputs.name }}