chore(ci): upgrade workflow runtimes

This commit is contained in:
xixu-me committed 2026-03-20 16:15:20 +08:00
1 parent c678764c11
commit 0d9360a003
6 files changed
+36 -16

No files matched your search

+3 -3
View File
@@ -50,7 +50,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "20"
node-version: "24"
cache: "npm"
- name: Install dependencies
@@ -73,7 +73,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "20"
node-version: "24"
cache: "npm"
- name: Install dependencies
@@ -133,7 +133,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "20"
node-version: "24"
cache: "npm"
- name: Install dependencies
+1 -1
View File
@@ -30,7 +30,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "20"
node-version: "24"
cache: "npm"
- name: Install dependencies
+1 -1
View File
@@ -31,7 +31,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "20"
node-version: "24"
cache: "npm"
- name: Install Netlify CLI
+1 -1
View File
@@ -34,7 +34,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "20"
node-version: "24"
cache: "npm"
- name: Install Vercel CLI
+15 -6
View File
@@ -13,6 +13,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
env:
WRANGLER_VERSION: "4.76.0"
jobs:
deploy:
runs-on: ubuntu-latest
@@ -55,10 +58,16 @@ jobs:
echo "Pages project created."
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
- name: Setup Node.js
uses: actions/setup-node@v6
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
wranglerVersion: "4.76.0"
command: pages deploy . --project-name=xget --branch=${{ github.ref_name }}
node-version: "24"
- name: Install Wrangler CLI
run: npm install --global wrangler@${{ env.WRANGLER_VERSION }}
- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: wrangler pages deploy . --project-name=xget --branch=${{ github.ref_name }}
+15 -4
View File
@@ -13,6 +13,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
env:
WRANGLER_VERSION: "4.76.0"
jobs:
deploy:
runs-on: ubuntu-latest
@@ -25,8 +28,16 @@ jobs:
- name: Checkout main branch
uses: actions/checkout@v6
- name: Deploy to Cloudflare Workers
uses: cloudflare/wrangler-action@v3
- name: Setup Node.js
uses: actions/setup-node@v6
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
node-version: "24"
- name: Install Wrangler CLI
run: npm install --global wrangler@${{ env.WRANGLER_VERSION }}
- name: Deploy to Cloudflare Workers
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: wrangler deploy