Skip to content

Commit 92fed19

Browse files
committed
chore: Update actions/setup-node to v4
- Bump node version to 20.x (https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default) - Read node version directly from `.nvmrc` file using the `node-version-file` command (https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#node-version-file)
1 parent d6f397f commit 92fed19

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@ jobs:
1212
- name: Checkout commit
1313
uses: actions/checkout@v4
1414

15-
- name: Read .nvmrc
16-
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
17-
id: nvm
18-
1915
- name: Setup node
20-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
2117
with:
22-
node-version: "${{ steps.nvm.outputs.NVMRC }}"
18+
node-version-file: '.nvmrc'
2319
cache: yarn
2420

2521
- name: Install dependencies

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.15.1
1+
20.x

0 commit comments

Comments
 (0)