Skip to content

Commit 1f0c5cd

Browse files
authored
Merge pull request #117 from actions/use-node-version-file
Use a centralized `.node-version` file
2 parents 1465f01 + 591bb0d commit 1f0c5cd

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

.github/workflows/check-dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Setup Node.js
3535
uses: actions/setup-node@v3
3636
with:
37-
node-version: 20.x
37+
node-version-file: '.node-version'
3838
cache: 'npm'
3939

4040
- name: Install dependencies

.github/workflows/check-formatting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Node
2626
uses: actions/setup-node@v3
2727
with:
28-
node-version: 20.x
28+
node-version-file: '.node-version'
2929
cache: 'npm'
3030

3131
- name: Install dependencies

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Node
2626
uses: actions/setup-node@v3
2727
with:
28-
node-version: 20.x
28+
node-version-file: '.node-version'
2929
cache: npm
3030

3131
- name: Install dependencies

.github/workflows/rebuild-dependabot-prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup Node.JS
2727
uses: actions/setup-node@v3
2828
with:
29-
node-version: 20.x
29+
node-version-file: '.node-version'
3030
cache: 'npm'
3131

3232
- name: Install dependencies

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Node.JS
2525
uses: actions/setup-node@v3
2626
with:
27-
node-version: 20.x
27+
node-version-file: '.node-version'
2828
cache: 'npm'
2929

3030
- name: Install dependencies

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.10.0

0 commit comments

Comments
 (0)