From 0bc26a9e4657dafc16be8c9ecb2909316bd256f9 Mon Sep 17 00:00:00 2001 From: fewensa Date: Mon, 9 Feb 2026 14:51:40 +0000 Subject: [PATCH] Update GitHub Actions to latest versions and Node 20 --- .github/workflows/ci.yml | 9 ++++----- .github/workflows/deploy-dev.yml | 16 ++++------------ .github/workflows/deploy-prd.yml | 14 ++++---------- .github/workflows/deploy-stg.yml | 14 ++++---------- 4 files changed, 16 insertions(+), 37 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4c79aa..1faf96d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,17 +11,17 @@ jobs: name: Check code runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 + - uses: actions/cache@v5 id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} @@ -37,4 +37,3 @@ jobs: - name: Test build run: yarn build - diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index cbd2306..735e2dc 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -8,20 +8,13 @@ jobs: name: Deploy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - uses: actions/checkout@v2 - with: - repository: darwinia-network/devops - path: .github - - - uses: pnpm/action-setup@v3 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v4 with: - version: 8 + version: '20' - - uses: ./.github/actions/smart-vercel + - uses: darwinia-network/devops/actions/smart-vercel@main name: Deploy to Vercel - id: smart-vercel with: vercel_token: ${{ secrets.VERCEL_TOKEN }} vercel_group: itering @@ -35,4 +28,3 @@ jobs: enable_notify_slack: true slack_channel: public-ringdao-apps slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} - diff --git a/.github/workflows/deploy-prd.yml b/.github/workflows/deploy-prd.yml index 58d8ff3..a31d55b 100644 --- a/.github/workflows/deploy-prd.yml +++ b/.github/workflows/deploy-prd.yml @@ -10,18 +10,12 @@ jobs: name: Deploy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - uses: actions/checkout@v2 - with: - repository: darwinia-network/devops - path: .github - - - uses: pnpm/action-setup@v3 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v4 with: - version: 8 + version: '20' - - uses: ./.github/actions/smart-vercel + - uses: darwinia-network/devops/actions/smart-vercel@main name: Deploy to Vercel id: smart-vercel with: diff --git a/.github/workflows/deploy-stg.yml b/.github/workflows/deploy-stg.yml index 9b82b82..50fadab 100644 --- a/.github/workflows/deploy-stg.yml +++ b/.github/workflows/deploy-stg.yml @@ -9,18 +9,12 @@ jobs: name: Deploy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - uses: actions/checkout@v2 - with: - repository: darwinia-network/devops - path: .github - - - uses: pnpm/action-setup@v3 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v4 with: - version: 8 + version: '20' - - uses: ./.github/actions/smart-vercel + - uses: darwinia-network/devops/actions/smart-vercel@main name: Deploy to Vercel id: smart-vercel with: