From 536d2a979dbcca77c3828ab0dc2b9ef212efc7e9 Mon Sep 17 00:00:00 2001 From: Davyd NRB <4661784+retyui@users.noreply.github.com> Date: Tue, 27 Feb 2024 11:12:50 +0200 Subject: [PATCH] Node.js 16 actions are deprecated. (#1567) Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/. --- .github/actions/setup-deps/action.yml | 4 ++-- .github/actions/setup-website-deps/action.yml | 4 ++-- .github/workflows/deploy-website.yml | 2 +- .github/workflows/example-apps.yml | 4 ++-- .github/workflows/main.yml | 14 +++++++------- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/actions/setup-deps/action.yml b/.github/actions/setup-deps/action.yml index e3cbb4b5d..97a16ff65 100644 --- a/.github/actions/setup-deps/action.yml +++ b/.github/actions/setup-deps/action.yml @@ -5,13 +5,13 @@ runs: using: composite steps: - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: .nvmrc - name: Cache deps id: yarn-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ./node_modules diff --git a/.github/actions/setup-website-deps/action.yml b/.github/actions/setup-website-deps/action.yml index 394570de9..59a2274a7 100644 --- a/.github/actions/setup-website-deps/action.yml +++ b/.github/actions/setup-website-deps/action.yml @@ -5,13 +5,13 @@ runs: using: composite steps: - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: .nvmrc - name: Cache website deps id: yarn-cache-website - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ./website/node_modules diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 0e54aa6a1..dc1a9e8e1 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js and website deps uses: ./.github/actions/setup-website-deps diff --git a/.github/workflows/example-apps.yml b/.github/workflows/example-apps.yml index c3c3f5291..f732af69c 100644 --- a/.github/workflows/example-apps.yml +++ b/.github/workflows/example-apps.yml @@ -13,10 +13,10 @@ jobs: timeout-minutes: 10 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} cache: 'yarn' diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7772dcf6d..614b97277 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: name: Install and Cache deps steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup uses: ./.github/actions/setup-deps @@ -22,7 +22,7 @@ jobs: name: Lint steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js and deps uses: ./.github/actions/setup-deps @@ -36,7 +36,7 @@ jobs: name: Typecheck steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js and deps uses: ./.github/actions/setup-deps @@ -50,7 +50,7 @@ jobs: name: Flow steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js and deps uses: ./.github/actions/setup-deps @@ -64,7 +64,7 @@ jobs: name: Test steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js and deps uses: ./.github/actions/setup-deps @@ -73,14 +73,14 @@ jobs: run: yarn test:ci - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 test-website: runs-on: ubuntu-latest name: Test Website steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js and website deps uses: ./.github/actions/setup-website-deps