feat(ci): use node version from .nvmrc

https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#node-version-file

Updated version in `.nvmrc` to latest v20
This commit is contained in:
Ismo Vuorinen 2024-08-28 09:49:45 +03:00
parent 318fb6efb9
commit f5d151bc5c
5 changed files with 6 additions and 5 deletions

View file

@ -15,7 +15,7 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: 20
node-version-file: '.nvmrc' # Use the node version specified in .nvmrc
cache: 'pnpm'
- name: Install dependencies

View file

@ -32,7 +32,7 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: 20
node-version-file: '.nvmrc' # Use the node version specified in .nvmrc
cache: 'pnpm'
- name: Install dependencies

View file

@ -18,7 +18,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20
node-version-file: '.nvmrc' # Use the node version specified in .nvmrc
cache: 'pnpm'
- name: Get Playwright version

View file

@ -61,7 +61,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20
node-version-file: '.nvmrc' # Use the node version specified in .nvmrc
cache: 'pnpm'
- name: Install dependencies

3
.nvmrc
View file

@ -1 +1,2 @@
18.18.2
# workflows use this version of Node.js
20.17.0