Skip to content

Commit 5cfb487

Browse files
committed
feat: set engines and prerelease for npm 10
BREAKING CHANGE: npm now supports node `^18.17.0 || >=20.5.0`
1 parent e5338af commit 5cfb487

File tree

10 files changed

+25
-30
lines changed

10 files changed

+25
-30
lines changed

.github/workflows/audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup Node
2727
uses: actions/setup-node@v3
2828
with:
29-
node-version: 18.x
29+
node-version: 20.x
3030
cache: npm
3131
- name: Check Git Status
3232
run: node scripts/git-dirty.js

.github/workflows/ci-npmcli-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup Node
3636
uses: actions/setup-node@v3
3737
with:
38-
node-version: 18.x
38+
node-version: 20.x
3939
cache: npm
4040
- name: Check Git Status
4141
run: node scripts/git-dirty.js
@@ -63,7 +63,7 @@ jobs:
6363
os: windows-latest
6464
shell: cmd
6565
node-version:
66-
- 18.x
66+
- 20.x
6767
runs-on: ${{ matrix.platform.os }}
6868
defaults:
6969
run:
@@ -110,7 +110,7 @@ jobs:
110110
- name: Setup Node
111111
uses: actions/setup-node@v3
112112
with:
113-
node-version: 18.x
113+
node-version: 20.x
114114
cache: npm
115115
- name: Check Git Status
116116
run: node scripts/git-dirty.js

.github/workflows/ci-release.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
- name: Setup Node
8282
uses: actions/setup-node@v3
8383
with:
84-
node-version: 18.x
84+
node-version: 20.x
8585
cache: npm
8686
- name: Check Git Status
8787
run: node scripts/git-dirty.js
@@ -116,12 +116,10 @@ jobs:
116116
os: windows-latest
117117
shell: cmd
118118
node-version:
119-
- 14.17.0
120-
- 14.x
121-
- 16.13.0
122-
- 16.x
123-
- 18.0.0
119+
- 18.17.0
124120
- 18.x
121+
- 20.5.0
122+
- 20.x
125123
runs-on: ${{ matrix.platform.os }}
126124
defaults:
127125
run:
@@ -219,12 +217,10 @@ jobs:
219217
os: macos-latest
220218
shell: bash
221219
node-version:
222-
- 14.17.0
223-
- 14.x
224-
- 16.13.0
225-
- 16.x
226-
- 18.0.0
220+
- 18.17.0
227221
- 18.x
222+
- 20.5.0
223+
- 20.x
228224
runs-on: ${{ matrix.platform.os }}
229225
defaults:
230226
run:

.github/workflows/ci.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Setup Node
4444
uses: actions/setup-node@v3
4545
with:
46-
node-version: 18.x
46+
node-version: 20.x
4747
cache: npm
4848
- name: Check Git Status
4949
run: node scripts/git-dirty.js
@@ -71,12 +71,10 @@ jobs:
7171
os: windows-latest
7272
shell: cmd
7373
node-version:
74-
- 14.17.0
75-
- 14.x
76-
- 16.13.0
77-
- 16.x
78-
- 18.0.0
74+
- 18.17.0
7975
- 18.x
76+
- 20.5.0
77+
- 20.x
8078
runs-on: ${{ matrix.platform.os }}
8179
defaults:
8280
run:
@@ -121,7 +119,7 @@ jobs:
121119
- name: Setup Node
122120
uses: actions/setup-node@v3
123121
with:
124-
node-version: 18.x
122+
node-version: 20.x
125123
cache: npm
126124
- name: Check Git Status
127125
run: node scripts/git-dirty.js
@@ -147,7 +145,7 @@ jobs:
147145
- name: Setup Node
148146
uses: actions/setup-node@v3
149147
with:
150-
node-version: 18.x
148+
node-version: 20.x
151149
cache: npm
152150
- name: Check Git Status
153151
run: node scripts/git-dirty.js
@@ -174,7 +172,7 @@ jobs:
174172
- name: Setup Node
175173
uses: actions/setup-node@v3
176174
with:
177-
node-version: 18.x
175+
node-version: 20.x
178176
cache: npm
179177
- name: Check Git Status
180178
run: node scripts/git-dirty.js

.github/workflows/create-node-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup Node
3737
uses: actions/setup-node@v3
3838
with:
39-
node-version: 18.x
39+
node-version: 20.x
4040
cache: npm
4141
- name: Check Git Status
4242
run: node scripts/git-dirty.js

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Setup Node
4545
uses: actions/setup-node@v3
4646
with:
47-
node-version: 18.x
47+
node-version: 20.x
4848
cache: npm
4949
- name: Check Git Status
5050
run: node scripts/git-dirty.js
@@ -156,7 +156,7 @@ jobs:
156156
- name: Setup Node
157157
uses: actions/setup-node@v3
158158
with:
159-
node-version: 18.x
159+
node-version: 20.x
160160
cache: npm
161161
- name: Check Git Status
162162
run: node scripts/git-dirty.js

package-lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
"tap": "^16.3.4"
179179
},
180180
"engines": {
181-
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
181+
"node": "^18.17.0 || >=20.5.0"
182182
}
183183
},
184184
"docs": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,6 @@
254254
},
255255
"license": "Artistic-2.0",
256256
"engines": {
257-
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
257+
"node": "^18.17.0 || >=20.5.0"
258258
}
259259
}

release-please-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"packages": {
3333
".": {
3434
"package-name": "",
35-
"prerelease": false
35+
"prerelease": true
3636
},
3737
"workspaces/arborist": {
3838
"prerelease": false

scripts/template-oss/root.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = {
2626
'.github/workflows/release.yml': false,
2727
},
2828
},
29+
ciVersions: ['18.17.0', '18.x', '20.5.0', '20.x'],
2930
lockfile: true,
3031
npm: '.',
3132
defaultBranch: 'latest',

0 commit comments

Comments
 (0)