diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a3b477..68fdb99 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 71eb3cf..a0ff273 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -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 diff --git a/.github/workflows/functions-ntl.yml b/.github/workflows/functions-ntl.yml index a71a440..80a6328 100644 --- a/.github/workflows/functions-ntl.yml +++ b/.github/workflows/functions-ntl.yml @@ -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 diff --git a/.github/workflows/functions-vc.yml b/.github/workflows/functions-vc.yml index b0d0696..f4bbacb 100644 --- a/.github/workflows/functions-vc.yml +++ b/.github/workflows/functions-vc.yml @@ -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 diff --git a/.github/workflows/pages-cf.yml b/.github/workflows/pages-cf.yml index f161020..a59de1c 100644 --- a/.github/workflows/pages-cf.yml +++ b/.github/workflows/pages-cf.yml @@ -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 }} diff --git a/.github/workflows/workers.yml b/.github/workflows/workers.yml index 50a27be..b4f2c76 100644 --- a/.github/workflows/workers.yml +++ b/.github/workflows/workers.yml @@ -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