Skip to content

Commit

Permalink
[Fix] 🐛 Cloudflare Worker Deploy Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-zklcdc committed Jun 15, 2024
1 parent 5b3fced commit 51a8429
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/cloudflare-worker-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ jobs:
timeout-minutes: 60
steps:
- uses: actions/checkout@v2
- name: Setup pnpm
uses: pnpm/action-setup@v4.0.0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
run_install: true
version: 9
- name: build - 构建
run: pnpm run build-worker
- name: Build & Deploy Worker
node-version: '20'
- name: Build
run: |
npm install && \
npm run build-worker
- name: Deploy Worker
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
Expand Down

0 comments on commit 51a8429

Please sign in to comment.