Skip to content

Commit 3a4f205

Browse files
Remove knowledge of the Node version from GitHub Actions
The 'setup-node' action has added support for reading the Node version from the package.json file. Refs 55f834e, actions/setup-node#485
1 parent 32d304d commit 3a4f205

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: 'Set up Node.js'
1919
uses: actions/[email protected]
2020
with:
21-
node-version: 16
21+
node-version-file: package.json
2222
cache: ${{ !env.ACT && 'npm' || '' }}
2323

2424
- name: 'Install dependencies'
@@ -79,7 +79,7 @@ jobs:
7979
- name: 'Set up Node.js'
8080
uses: actions/[email protected]
8181
with:
82-
node-version: 16
82+
node-version-file: package.json
8383
cache: ${{ !env.ACT && 'npm' || '' }}
8484

8585
- name: 'Install dependencies'
@@ -101,7 +101,7 @@ jobs:
101101
- name: 'Set up Node.js'
102102
uses: actions/[email protected]
103103
with:
104-
node-version: 16
104+
node-version-file: package.json
105105
cache: ${{ !env.ACT && 'npm' || '' }}
106106

107107
- name: 'Install dependencies'
@@ -129,7 +129,7 @@ jobs:
129129
- name: 'Set up Node.js'
130130
uses: actions/[email protected]
131131
with:
132-
node-version: 16
132+
node-version-file: package.json
133133
cache: ${{ !env.ACT && 'npm' || '' }}
134134

135135
- name: 'Install dependencies'
@@ -214,7 +214,7 @@ jobs:
214214
- name: 'Set up Node.js'
215215
uses: actions/[email protected]
216216
with:
217-
node-version: 16
217+
node-version-file: package.json
218218
cache: ${{ !env.ACT && 'npm' || '' }}
219219

220220
- name: 'Install dependencies'

0 commit comments

Comments
 (0)