From 5b0db76e2ea2c4a30f09fc6b04a38a889e9687cb Mon Sep 17 00:00:00 2001 From: Gabriele Antonini Date: Tue, 19 Mar 2024 16:02:48 +0100 Subject: [PATCH] chore: upgrade to node 20 github actions --- .github/workflows/main.yml | 16 ++++++++-------- .github/workflows/release.yml | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fa32f956f1..7d84d1de61 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,7 +45,7 @@ jobs: uses: actions/checkout@v4 - name: Setup Node (uses version in .nvmrc) - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -53,7 +53,7 @@ jobs: - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} @@ -61,7 +61,7 @@ jobs: restore-keys: | ${{ runner.os }}-yarn-v3- # cached build (separately to increase cache efficiency) - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: build-cache with: path: | @@ -148,7 +148,7 @@ jobs: # restore / cache the binary ourselves on Linux # see https://github.com/actions/cache id: cache-cypress - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cache/Cypress key: ${{ runner.os }}-cypress-${{ hashFiles('**/package.json') }} @@ -185,7 +185,7 @@ jobs: uses: actions/checkout@v4 - name: Setup Node (uses version in .nvmrc) - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -193,7 +193,7 @@ jobs: - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} @@ -214,7 +214,7 @@ jobs: # restore / cache the binary ourselves on Linux # see https://github.com/actions/cache id: cache-cypress - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cache/Cypress key: ${{ runner.os }}-cypress-${{ hashFiles('**/package.json') }} @@ -230,7 +230,7 @@ jobs: CYPRESS_CI: 'true' - name: Upload e2e artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v3-node20 if: ${{ failure() }} with: name: self-learning-e2e-failure-snapshots-${{ github.run_attempt }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22091ef7a5..bee9bd09fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,14 +10,14 @@ jobs: runs-on: ubuntu-latest steps: - # Get GitHub token via the CT Changesets App + # Get GitHub token via the CT Changesets App - name: Generate GitHub token (via CT Changesets App) id: generate_github_token uses: tibdex/github-app-token@v2.1.0 with: app_id: ${{ secrets.CT_CHANGESETS_APP_ID }} private_key: ${{ secrets.CT_CHANGESETS_APP_PEM }} - + - name: Checkout uses: actions/checkout@v4 with: @@ -27,11 +27,11 @@ jobs: token: ${{ steps.generate_github_token.outputs.token }} - name: Setup Node (uses version in .nvmrc) - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: .cache/yarn key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}