Avoid slow cache restore and scope Worker preview token

This commit is contained in:
Kevin
2026-09-02 01:06:51 -04:00
parent 15f03016b5
commit 9042639dd4
3 changed files with 9 additions and 4 deletions
+1 -2
View File
@@ -27,7 +27,6 @@ jobs:
uses: https://github.com/actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install locked dependencies
run: npm ci
- name: Validate and build selected site
@@ -37,5 +36,5 @@ jobs:
- name: Deploy non-production Worker
run: npx wrangler deploy --config "wrangler/${SITE_KEY}.jsonc"
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_WORKER_PREVIEW_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}