fix(ci): add wrangler config and upgrade to v4.45.3

- Add wrangler.toml with compatibility_date to fix CI deployment
- Upgrade Wrangler from v3.90.0 to v4.45.3
- Simplify deploy command to use config file
- Add wrangler.toml to workflow trigger paths

Fixes CloudFlare Worker deployment failure due to missing compatibility_date parameter.
This commit is contained in:
kaitranntt
2025-11-02 20:33:55 -05:00
parent e9eb215d1f
commit edc89c4a12
2 changed files with 10 additions and 1 deletions
+3 -1
View File
@@ -5,6 +5,7 @@ on:
branches: [main]
paths:
- 'scripts/worker.js'
- 'scripts/wrangler.toml'
- 'installers/**'
# Allow manual trigger
@@ -25,4 +26,5 @@ jobs:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: scripts
command: deploy worker.js --name ccs-installer
wranglerVersion: "4.45.3"
command: deploy