diff --git a/.github/workflows/cloudflare-worker-deploy.yml b/.github/workflows/cloudflare-worker-deploy.yml index 1cf08bcea3..06fff14db7 100644 --- a/.github/workflows/cloudflare-worker-deploy.yml +++ b/.github/workflows/cloudflare-worker-deploy.yml @@ -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 }}