Skip to content

Commit b6cf113

Browse files
authored
feat: set engines and prerelease for npm 10 (#6674)
BREAKING CHANGE: npm now supports node `^18.17.0 || >=20.5.0`
1 parent e5338af commit b6cf113

28 files changed

+83
-31
lines changed

.github/workflows/audit.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ 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
31+
check-latest: true
3132
- name: Check Git Status
3233
run: node scripts/git-dirty.js
3334
- name: Reset Deps

.github/workflows/ci-libnpmaccess.yml

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
node-version: 18.x
3939
cache: npm
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -85,6 +86,7 @@ jobs:
8586
with:
8687
node-version: ${{ matrix.node-version }}
8788
cache: npm
89+
check-latest: true
8890
- name: Check Git Status
8991
run: node scripts/git-dirty.js
9092
- name: Reset Deps

.github/workflows/ci-libnpmdiff.yml

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
node-version: 18.x
3939
cache: npm
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -85,6 +86,7 @@ jobs:
8586
with:
8687
node-version: ${{ matrix.node-version }}
8788
cache: npm
89+
check-latest: true
8890
- name: Check Git Status
8991
run: node scripts/git-dirty.js
9092
- name: Reset Deps

.github/workflows/ci-libnpmexec.yml

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
node-version: 18.x
3939
cache: npm
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -85,6 +86,7 @@ jobs:
8586
with:
8687
node-version: ${{ matrix.node-version }}
8788
cache: npm
89+
check-latest: true
8890
- name: Check Git Status
8991
run: node scripts/git-dirty.js
9092
- name: Reset Deps

.github/workflows/ci-libnpmfund.yml

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
node-version: 18.x
3939
cache: npm
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -85,6 +86,7 @@ jobs:
8586
with:
8687
node-version: ${{ matrix.node-version }}
8788
cache: npm
89+
check-latest: true
8890
- name: Check Git Status
8991
run: node scripts/git-dirty.js
9092
- name: Reset Deps

.github/workflows/ci-libnpmhook.yml

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
node-version: 18.x
3939
cache: npm
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -85,6 +86,7 @@ jobs:
8586
with:
8687
node-version: ${{ matrix.node-version }}
8788
cache: npm
89+
check-latest: true
8890
- name: Check Git Status
8991
run: node scripts/git-dirty.js
9092
- name: Reset Deps

.github/workflows/ci-libnpmorg.yml

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
node-version: 18.x
3939
cache: npm
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -85,6 +86,7 @@ jobs:
8586
with:
8687
node-version: ${{ matrix.node-version }}
8788
cache: npm
89+
check-latest: true
8890
- name: Check Git Status
8991
run: node scripts/git-dirty.js
9092
- name: Reset Deps

.github/workflows/ci-libnpmpack.yml

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
node-version: 18.x
3939
cache: npm
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -85,6 +86,7 @@ jobs:
8586
with:
8687
node-version: ${{ matrix.node-version }}
8788
cache: npm
89+
check-latest: true
8890
- name: Check Git Status
8991
run: node scripts/git-dirty.js
9092
- name: Reset Deps

.github/workflows/ci-libnpmpublish.yml

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
node-version: 18.x
3939
cache: npm
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -85,6 +86,7 @@ jobs:
8586
with:
8687
node-version: ${{ matrix.node-version }}
8788
cache: npm
89+
check-latest: true
8890
- name: Check Git Status
8991
run: node scripts/git-dirty.js
9092
- name: Reset Deps

.github/workflows/ci-libnpmsearch.yml

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
node-version: 18.x
3939
cache: npm
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -85,6 +86,7 @@ jobs:
8586
with:
8687
node-version: ${{ matrix.node-version }}
8788
cache: npm
89+
check-latest: true
8890
- name: Check Git Status
8991
run: node scripts/git-dirty.js
9092
- name: Reset Deps

.github/workflows/ci-libnpmteam.yml

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
node-version: 18.x
3939
cache: npm
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -85,6 +86,7 @@ jobs:
8586
with:
8687
node-version: ${{ matrix.node-version }}
8788
cache: npm
89+
check-latest: true
8890
- name: Check Git Status
8991
run: node scripts/git-dirty.js
9092
- name: Reset Deps

.github/workflows/ci-libnpmversion.yml

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
node-version: 18.x
3939
cache: npm
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -85,6 +86,7 @@ jobs:
8586
with:
8687
node-version: ${{ matrix.node-version }}
8788
cache: npm
89+
check-latest: true
8890
- name: Check Git Status
8991
run: node scripts/git-dirty.js
9092
- name: Reset Deps

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

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
node-version: 18.x
3939
cache: npm
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -85,6 +86,7 @@ jobs:
8586
with:
8687
node-version: ${{ matrix.node-version }}
8788
cache: npm
89+
check-latest: true
8890
- name: Check Git Status
8991
run: node scripts/git-dirty.js
9092
- name: Reset Deps

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

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
node-version: 18.x
3939
cache: npm
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -85,6 +86,7 @@ jobs:
8586
with:
8687
node-version: ${{ matrix.node-version }}
8788
cache: npm
89+
check-latest: true
8890
- name: Check Git Status
8991
run: node scripts/git-dirty.js
9092
- name: Reset Deps

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

+6-3
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ 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
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -63,7 +64,7 @@ jobs:
6364
os: windows-latest
6465
shell: cmd
6566
node-version:
66-
- 18.x
67+
- 20.x
6768
runs-on: ${{ matrix.platform.os }}
6869
defaults:
6970
run:
@@ -80,6 +81,7 @@ jobs:
8081
with:
8182
node-version: ${{ matrix.node-version }}
8283
cache: npm
84+
check-latest: true
8385
- name: Check Git Status
8486
run: node scripts/git-dirty.js
8587
- name: Reset Deps
@@ -110,8 +112,9 @@ jobs:
110112
- name: Setup Node
111113
uses: actions/setup-node@v3
112114
with:
113-
node-version: 18.x
115+
node-version: 20.x
114116
cache: npm
117+
check-latest: true
115118
- name: Check Git Status
116119
run: node scripts/git-dirty.js
117120
- name: Reset Deps

.github/workflows/ci-npmcli-mock-globals.yml

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
node-version: 18.x
3939
cache: npm
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -85,6 +86,7 @@ jobs:
8586
with:
8687
node-version: ${{ matrix.node-version }}
8788
cache: npm
89+
check-latest: true
8890
- name: Check Git Status
8991
run: node scripts/git-dirty.js
9092
- name: Reset Deps

.github/workflows/ci-npmcli-mock-registry.yml

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
node-version: 18.x
3939
cache: npm
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -85,6 +86,7 @@ jobs:
8586
with:
8687
node-version: ${{ matrix.node-version }}
8788
cache: npm
89+
check-latest: true
8890
- name: Check Git Status
8991
run: node scripts/git-dirty.js
9092
- name: Reset Deps

.github/workflows/ci-npmcli-smoke-tests.yml

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
node-version: 18.x
3939
cache: npm
40+
check-latest: true
4041
- name: Check Git Status
4142
run: node scripts/git-dirty.js
4243
- name: Reset Deps
@@ -85,6 +86,7 @@ jobs:
8586
with:
8687
node-version: ${{ matrix.node-version }}
8788
cache: npm
89+
check-latest: true
8890
- name: Check Git Status
8991
run: node scripts/git-dirty.js
9092
- name: Reset Deps

.github/workflows/ci-release.yml

+10-11
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ 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
86+
check-latest: true
8687
- name: Check Git Status
8788
run: node scripts/git-dirty.js
8889
- name: Reset Deps
@@ -116,12 +117,10 @@ jobs:
116117
os: windows-latest
117118
shell: cmd
118119
node-version:
119-
- 14.17.0
120-
- 14.x
121-
- 16.13.0
122-
- 16.x
123-
- 18.0.0
120+
- 18.17.0
124121
- 18.x
122+
- 20.5.0
123+
- 20.x
125124
runs-on: ${{ matrix.platform.os }}
126125
defaults:
127126
run:
@@ -183,6 +182,7 @@ jobs:
183182
with:
184183
node-version: ${{ matrix.node-version }}
185184
cache: npm
185+
check-latest: true
186186
- name: Check Git Status
187187
run: node scripts/git-dirty.js
188188
- name: Reset Deps
@@ -219,12 +219,10 @@ jobs:
219219
os: macos-latest
220220
shell: bash
221221
node-version:
222-
- 14.17.0
223-
- 14.x
224-
- 16.13.0
225-
- 16.x
226-
- 18.0.0
222+
- 18.17.0
227223
- 18.x
224+
- 20.5.0
225+
- 20.x
228226
runs-on: ${{ matrix.platform.os }}
229227
defaults:
230228
run:
@@ -286,6 +284,7 @@ jobs:
286284
with:
287285
node-version: ${{ matrix.node-version }}
288286
cache: npm
287+
check-latest: true
289288
- name: Check Git Status
290289
run: node scripts/git-dirty.js
291290
- name: Reset Deps

0 commit comments

Comments
 (0)