Skip to content

Commit

Permalink
feat: set engines and prerelease for npm 10 (#6674)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: npm now supports node `^18.17.0 || >=20.5.0`
  • Loading branch information
lukekarrys authored Jul 26, 2023
1 parent e5338af commit b6cf113
Show file tree
Hide file tree
Showing 28 changed files with 83 additions and 31 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-libnpmaccess.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
node-version: 18.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-libnpmdiff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
node-version: 18.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-libnpmexec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
node-version: 18.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-libnpmfund.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
node-version: 18.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-libnpmhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
node-version: 18.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-libnpmorg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
node-version: 18.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-libnpmpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
node-version: 18.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-libnpmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
node-version: 18.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-libnpmsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
node-version: 18.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-libnpmteam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
node-version: 18.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-libnpmversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
node-version: 18.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-npmcli-arborist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
node-version: 18.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-npmcli-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
node-version: 18.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/ci-npmcli-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand All @@ -63,7 +64,7 @@ jobs:
os: windows-latest
shell: cmd
node-version:
- 18.x
- 20.x
runs-on: ${{ matrix.platform.os }}
defaults:
run:
Expand All @@ -80,6 +81,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -110,8 +112,9 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-npmcli-mock-globals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
node-version: 18.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-npmcli-mock-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
node-version: 18.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-npmcli-smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
node-version: 18.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
21 changes: 10 additions & 11 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -116,12 +117,10 @@ jobs:
os: windows-latest
shell: cmd
node-version:
- 14.17.0
- 14.x
- 16.13.0
- 16.x
- 18.0.0
- 18.17.0
- 18.x
- 20.5.0
- 20.x
runs-on: ${{ matrix.platform.os }}
defaults:
run:
Expand Down Expand Up @@ -183,6 +182,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down Expand Up @@ -219,12 +219,10 @@ jobs:
os: macos-latest
shell: bash
node-version:
- 14.17.0
- 14.x
- 16.13.0
- 16.x
- 18.0.0
- 18.17.0
- 18.x
- 20.5.0
- 20.x
runs-on: ${{ matrix.platform.os }}
defaults:
run:
Expand Down Expand Up @@ -286,6 +284,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Expand Down
Loading

0 comments on commit b6cf113

Please sign in to comment.