Skip to content

Commit 45b6dae

Browse files
committed
ci(docs): deploy via npx wrangler instead of wrangler-action
wrangler-action's local-install probe fails under pnpm exec; npx wrangler is one step and reads the Cloudflare env vars natively.
1 parent 3ee0ca2 commit 45b6dae

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎.github/workflows/docs.yml‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ jobs:
2323
cache: pnpm
2424
- run: pnpm install --frozen-lockfile
2525
- run: pnpm docs:build
26-
- uses: cloudflare/wrangler-action@v3
27-
with:
28-
wranglerVersion: "3.114.0"
29-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
30-
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
31-
command: pages deploy docs/site --project-name=unplugin-scriptc
26+
- run: npx wrangler@3 pages deploy docs/site --project-name=unplugin-scriptc
27+
env:
28+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
29+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

0 commit comments

Comments
 (0)