Skip to content

Commit 8ee10cc

Browse files
authored
Retrieve Node.js version from .nvmrc (rescript-lang#7214)
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 005fc21 commit 8ee10cc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ jobs:
135135
- name: Use Node.js
136136
uses: actions/setup-node@v4
137137
with:
138-
node-version: 18
138+
node-version-file: .nvmrc
139139

140140
- name: Get artifact dir name
141141
run: node .github/workflows/get_artifact_dir_name.js
@@ -401,7 +401,7 @@ jobs:
401401
- name: Use Node.js
402402
uses: actions/setup-node@v4
403403
with:
404-
node-version: 18
404+
node-version-file: .nvmrc
405405

406406
- name: NPM install
407407
run: npm ci --ignore-scripts
@@ -461,7 +461,7 @@ jobs:
461461
- name: Use Node.js
462462
uses: actions/setup-node@v4
463463
with:
464-
node-version: 18
464+
node-version-file: .nvmrc
465465

466466
- name: Download artifacts
467467
uses: actions/download-artifact@v4
@@ -495,7 +495,7 @@ jobs:
495495
- name: Use Node.js
496496
uses: actions/setup-node@v4
497497
with:
498-
node-version: 18
498+
node-version-file: .nvmrc
499499
registry-url: https://registry.npmjs.org # Needed to make auth work for publishing
500500

501501
- name: Download artifacts

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

0 commit comments

Comments
 (0)