Skip to content

Commit 04c89d0

Browse files
willswireclaude
andauthored
fix(ci): use project wrangler instead of outdated wrangler-action (#215)
The wrangler-action was pinned to a SHA that installed wrangler 3.90.0, while the project uses wrangler 4.70.0. This version mismatch caused deploy failures (502 Bad Gateway). Replaced with direct npm ci + npx wrangler deploy to use the project's own wrangler and ensure the cloudflare SDK is installed before bundling. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0fc35f7 commit 04c89d0

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,15 @@ jobs:
1616
name: Deploy
1717
steps:
1818
- uses: actions/checkout@v6
19-
- name: Deploy
20-
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
2121
with:
22-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
23-
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
22+
node-version: lts/*
23+
cache: npm
24+
- name: Install dependencies
25+
run: npm ci
26+
- name: Deploy
27+
run: npx wrangler deploy
28+
env:
29+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
30+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

0 commit comments

Comments
 (0)