diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 806706c2e6bff..cb12bc3e5c269 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -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 diff --git a/.github/workflows/ci-libnpmaccess.yml b/.github/workflows/ci-libnpmaccess.yml index 009f310a1ff28..c4b51b0ec089f 100644 --- a/.github/workflows/ci-libnpmaccess.yml +++ b/.github/workflows/ci-libnpmaccess.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-libnpmdiff.yml b/.github/workflows/ci-libnpmdiff.yml index ade3bcd5ba5f0..3b6ca0d16b9bc 100644 --- a/.github/workflows/ci-libnpmdiff.yml +++ b/.github/workflows/ci-libnpmdiff.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-libnpmexec.yml b/.github/workflows/ci-libnpmexec.yml index 368be0bbf020e..865b587f99248 100644 --- a/.github/workflows/ci-libnpmexec.yml +++ b/.github/workflows/ci-libnpmexec.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-libnpmfund.yml b/.github/workflows/ci-libnpmfund.yml index fa51078acb9d0..e1daa28bd270a 100644 --- a/.github/workflows/ci-libnpmfund.yml +++ b/.github/workflows/ci-libnpmfund.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-libnpmhook.yml b/.github/workflows/ci-libnpmhook.yml index c02f043064470..1e656321cf743 100644 --- a/.github/workflows/ci-libnpmhook.yml +++ b/.github/workflows/ci-libnpmhook.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-libnpmorg.yml b/.github/workflows/ci-libnpmorg.yml index 40392306cbcfb..bbff4cbbd1636 100644 --- a/.github/workflows/ci-libnpmorg.yml +++ b/.github/workflows/ci-libnpmorg.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-libnpmpack.yml b/.github/workflows/ci-libnpmpack.yml index ac19ee9453d51..d5e9092de9031 100644 --- a/.github/workflows/ci-libnpmpack.yml +++ b/.github/workflows/ci-libnpmpack.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-libnpmpublish.yml b/.github/workflows/ci-libnpmpublish.yml index 8ea422c2b6c4a..b3c3d47213c33 100644 --- a/.github/workflows/ci-libnpmpublish.yml +++ b/.github/workflows/ci-libnpmpublish.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-libnpmsearch.yml b/.github/workflows/ci-libnpmsearch.yml index 563acea2d69e8..84d3c47582a03 100644 --- a/.github/workflows/ci-libnpmsearch.yml +++ b/.github/workflows/ci-libnpmsearch.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-libnpmteam.yml b/.github/workflows/ci-libnpmteam.yml index 6f3bcc328cbbe..41aeea5d0f975 100644 --- a/.github/workflows/ci-libnpmteam.yml +++ b/.github/workflows/ci-libnpmteam.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-libnpmversion.yml b/.github/workflows/ci-libnpmversion.yml index 36c9d92f720e5..b94827e9dad3c 100644 --- a/.github/workflows/ci-libnpmversion.yml +++ b/.github/workflows/ci-libnpmversion.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-npmcli-arborist.yml b/.github/workflows/ci-npmcli-arborist.yml index d3fa83220f8be..f833c7946e36c 100644 --- a/.github/workflows/ci-npmcli-arborist.yml +++ b/.github/workflows/ci-npmcli-arborist.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-npmcli-config.yml b/.github/workflows/ci-npmcli-config.yml index b8fc544b78032..0aa7e07b2f229 100644 --- a/.github/workflows/ci-npmcli-config.yml +++ b/.github/workflows/ci-npmcli-config.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-npmcli-docs.yml b/.github/workflows/ci-npmcli-docs.yml index 4df6fc17a0ce6..ad6cabf1932a4 100644 --- a/.github/workflows/ci-npmcli-docs.yml +++ b/.github/workflows/ci-npmcli-docs.yml @@ -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 @@ -63,7 +64,7 @@ jobs: os: windows-latest shell: cmd node-version: - - 18.x + - 20.x runs-on: ${{ matrix.platform.os }} defaults: run: @@ -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 @@ -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 diff --git a/.github/workflows/ci-npmcli-mock-globals.yml b/.github/workflows/ci-npmcli-mock-globals.yml index 8028138959608..b3b37036b47b1 100644 --- a/.github/workflows/ci-npmcli-mock-globals.yml +++ b/.github/workflows/ci-npmcli-mock-globals.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-npmcli-mock-registry.yml b/.github/workflows/ci-npmcli-mock-registry.yml index e04bcf3013124..f95e25fca898b 100644 --- a/.github/workflows/ci-npmcli-mock-registry.yml +++ b/.github/workflows/ci-npmcli-mock-registry.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-npmcli-smoke-tests.yml b/.github/workflows/ci-npmcli-smoke-tests.yml index ff66b993a0cc3..abb434b23fa79 100644 --- a/.github/workflows/ci-npmcli-smoke-tests.yml +++ b/.github/workflows/ci-npmcli-smoke-tests.yml @@ -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 @@ -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 diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index d3dde52f5979a..7a224177fe5d6 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -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 @@ -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: @@ -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 @@ -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: @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17b79459c3740..7ad326099c57b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,8 +43,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 @@ -71,12 +72,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: @@ -93,6 +92,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 @@ -121,8 +121,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 @@ -147,8 +148,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 @@ -174,8 +176,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 diff --git a/.github/workflows/create-node-pr.yml b/.github/workflows/create-node-pr.yml index 2825623093183..b772ff2706bc1 100644 --- a/.github/workflows/create-node-pr.yml +++ b/.github/workflows/create-node-pr.yml @@ -36,8 +36,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 diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index b01e071059e4b..f28d52cc09046 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -30,8 +30,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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4e5fde33cdf3c..7bdfb8d30fa59 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,8 +44,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 @@ -156,8 +157,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 diff --git a/package-lock.json b/package-lock.json index 2b32aeb631904..dbac4c8f90036 100644 --- a/package-lock.json +++ b/package-lock.json @@ -178,7 +178,7 @@ "tap": "^16.3.4" }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": "^18.17.0 || >=20.5.0" } }, "docs": { diff --git a/package.json b/package.json index 6e719a073893b..b8415241fbc34 100644 --- a/package.json +++ b/package.json @@ -254,6 +254,6 @@ }, "license": "Artistic-2.0", "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": "^18.17.0 || >=20.5.0" } } diff --git a/release-please-config.json b/release-please-config.json index 389df42704f13..453d831c4c403 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -32,7 +32,7 @@ "packages": { ".": { "package-name": "", - "prerelease": false + "prerelease": true }, "workspaces/arborist": { "prerelease": false diff --git a/scripts/template-oss/_step-node.yml b/scripts/template-oss/_step-node.yml new file mode 100644 index 0000000000000..de19bf1419801 --- /dev/null +++ b/scripts/template-oss/_step-node.yml @@ -0,0 +1,8 @@ +- name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: {{#if jobIsMatrix}}$\{{ matrix.node-version }}{{else}}{{ last ciVersions }}{{/if}} + cache: npm + {{! Temporarily bust cache so our engines work with the latest Node. + This entire file can be deleted once this is no longer needed. }} + check-latest: true diff --git a/scripts/template-oss/root.js b/scripts/template-oss/root.js index 22ddf00264f19..6c25488dd2b42 100644 --- a/scripts/template-oss/root.js +++ b/scripts/template-oss/root.js @@ -24,8 +24,10 @@ module.exports = { '.github/workflows/ci-release.yml': false, '.github/workflows/post-dependabot.yml': false, '.github/workflows/release.yml': false, + '.github/workflows/pull-request.yml': false, }, }, + ciVersions: ['18.17.0', '18.x', '20.5.0', '20.x'], lockfile: true, npm: '.', defaultBranch: 'latest',