Skip to content

Commit a558a33

Browse files
authored
Merge pull request #2016 from Fryguy/node_version_file
Read the node version from package.json in CI
2 parents ddf783c + 13d2a69 commit a558a33

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node-version:
15-
- 20
1614
test-suite:
1715
- test
1816
- test:security
@@ -23,7 +21,7 @@ jobs:
2321
- name: Set up Node
2422
uses: actions/setup-node@v5
2523
with:
26-
node-version: "${{ matrix.node-version }}"
24+
node-version-file: package.json
2725
cache: "${{ !env.ACT && 'yarn' || '' }}"
2826
registry-url: https://npm.manageiq.org/
2927
- name: Prepare tests

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@
135135
"> 5%"
136136
],
137137
"engines": {
138-
"node": ">= 20.19.1",
139-
"npm": ">= 10.8.2"
138+
"node": "^20.19.5",
139+
"npm": "^10.8.2"
140140
},
141141
"packageManager": "yarn@4.10.3",
142142
"resolutions": {

0 commit comments

Comments
 (0)