Skip to content

Commit

Permalink
ci: update GitHub actions to use Node.js v20
Browse files Browse the repository at this point in the history
Update actions/checkout and actions/setup-node to the latest versions,
using Node.js v20.

This change removes the multiple warnings from the GitHub run view:

> The following actions uses node12 which is deprecated and will be forced
> to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info:
> https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/

In addition, remove `registry-url` parameter from the second `setup-node`,
because it equals the default value.
  • Loading branch information
NickVolynkin committed Mar 12, 2024
1 parent 62790a9 commit 2da8ab2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
- "qase-playwright"
- "qase-testcafe"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- working-directory: ./${{ matrix.prefix }}
Expand All @@ -49,12 +49,11 @@ jobs:
- "qase-testcafe"
if: startsWith(github.event.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
if: contains(github.event.ref, matrix.prefix)
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
- if: contains(github.event.ref, matrix.prefix)
working-directory: ./${{ matrix.prefix }}
run: npm install
Expand Down

0 comments on commit 2da8ab2

Please sign in to comment.