Skip to content

Commit 0558735

Browse files
committed
Use the .node-version file to define node env for Github actions
1 parent 471f8dc commit 0558735

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/check-dist.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup Node.js
3737
uses: actions/setup-node@v4
3838
with:
39-
node-version: 20
39+
node-version-file: ".node-version"
4040
cache: yarn
4141

4242
- name: Install Dependencies

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
id: setup-node
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 20
24+
node-version-file: ".node-version"
2525
cache: yarn
2626

2727
- name: Install Dependencies

.github/workflows/linter.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
id: setup-node
2828
uses: actions/setup-node@v4
2929
with:
30-
node-version: 20
30+
node-version-file: ".node-version"
3131
cache: yarn
3232

3333
- name: Install Dependencies

0 commit comments

Comments
 (0)