Skip to content

Commit c7d81b1

Browse files
tianzhouclaude
andcommitted
fix: use npm install + npx wrangler for demo deploy
The wrangler-action fails because pnpm is not installed on the runner. Switch to npm install + npx wrangler deploy, matching the stripe worker deployment pattern. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bbf99d6 commit c7d81b1

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/deploy-demo.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,16 @@ jobs:
2222
- name: Update image tag in wrangler.toml
2323
run: sed -i "s|pgplex/pgconsole:[^ \"]*|pgplex/pgconsole:${{ steps.version.outputs.VERSION }}|" worker/demo/wrangler.toml
2424

25-
- name: Deploy to Cloudflare
26-
uses: cloudflare/wrangler-action@v3
25+
- uses: actions/setup-node@v4
2726
with:
28-
workingDirectory: worker/demo
29-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
30-
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
27+
node-version: "22"
28+
29+
- name: Install dependencies
30+
run: npm install --prefix worker/demo
31+
32+
- name: Deploy to Cloudflare
33+
run: npx wrangler deploy
34+
working-directory: worker/demo
35+
env:
36+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
37+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

0 commit comments

Comments
 (0)