From 0e7670a4224a24518947c0d511d0db312749622b Mon Sep 17 00:00:00 2001 From: Eran Chetz Date: Tue, 14 Apr 2026 12:53:59 +0300 Subject: [PATCH] chore: update GitHub Actions to Node.js 24-compatible versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bump action versions to avoid Node.js 20 deprecation warnings: - actions/checkout v4 → v5 - actions/setup-node v4 → v5 - aws-actions/configure-aws-credentials v4 → v5 - actions/github-script v7 → v8 Also update app node-version from '20' to '22' (current LTS). Node.js 20 actions are deprecated and will stop working by default on June 2, 2026 and be removed September 16, 2026. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci.yml | 14 +++++++------- .github/workflows/fetch-pricing.yml | 6 +++--- .github/workflows/preview-cleanup.yml | 2 +- .github/workflows/preview.yml | 10 +++++----- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a8d86996..fc664078c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,12 +13,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: - node-version: '20' + node-version: '22' cache: 'npm' - name: Install dependencies @@ -41,12 +41,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: - node-version: '20' + node-version: '22' cache: 'npm' - name: Install dependencies @@ -62,7 +62,7 @@ jobs: - name: Configure AWS credentials if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v3-rewrite') - uses: aws-actions/configure-aws-credentials@v4 + uses: aws-actions/configure-aws-credentials@v5 with: role-to-assume: ${{ vars.IAM_ROLE }} aws-region: us-east-1 diff --git a/.github/workflows/fetch-pricing.yml b/.github/workflows/fetch-pricing.yml index 6da15184a..cc2cbff53 100644 --- a/.github/workflows/fetch-pricing.yml +++ b/.github/workflows/fetch-pricing.yml @@ -17,12 +17,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: - node-version: '20' + node-version: '22' cache: 'npm' - name: Install dependencies diff --git a/.github/workflows/preview-cleanup.yml b/.github/workflows/preview-cleanup.yml index 105030e75..7b02afa07 100644 --- a/.github/workflows/preview-cleanup.yml +++ b/.github/workflows/preview-cleanup.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v4 + uses: aws-actions/configure-aws-credentials@v5 with: role-to-assume: ${{ vars.IAM_ROLE }} aws-region: us-east-1 diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index a835ef77f..820cbafa9 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -17,12 +17,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: - node-version: '20' + node-version: '22' cache: 'npm' - name: Install dependencies @@ -34,7 +34,7 @@ jobs: run: npm run build - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v4 + uses: aws-actions/configure-aws-credentials@v5 with: role-to-assume: ${{ vars.IAM_ROLE }} aws-region: us-east-1 @@ -43,7 +43,7 @@ jobs: run: aws s3 sync ./dist s3://gcpinstances.doit.com/previews/pr-${{ github.event.pull_request.number }}/ - name: Comment preview URL - uses: actions/github-script@v7 + uses: actions/github-script@v8 with: script: | const url = `https://gcpinstances.doit.com/previews/pr-${{ github.event.pull_request.number }}/`