diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index fa3163a8..420a4fdf 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -27,8 +27,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index 165fed0a..c02812c1 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -47,8 +47,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -88,6 +88,7 @@ jobs: - 18.x - 20.5.0 - 20.x + - 22.x runs-on: ${{ matrix.platform.os }} defaults: run: diff --git a/.github/workflows/ci-test-workspace.yml b/.github/workflows/ci-test-workspace.yml index 5d05b6d6..c0214a69 100644 --- a/.github/workflows/ci-test-workspace.yml +++ b/.github/workflows/ci-test-workspace.yml @@ -35,8 +35,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -69,6 +69,7 @@ jobs: - 18.x - 20.5.0 - 20.x + - 22.x runs-on: ${{ matrix.platform.os }} defaults: run: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a458d931..cb14fc2e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,8 +35,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -69,6 +69,7 @@ jobs: - 18.x - 20.5.0 - 20.x + - 22.x runs-on: ${{ matrix.platform.os }} defaults: run: diff --git a/.github/workflows/post-dependabot.yml b/.github/workflows/post-dependabot.yml index 11a7b7c8..7f3a3a71 100644 --- a/.github/workflows/post-dependabot.yml +++ b/.github/workflows/post-dependabot.yml @@ -28,8 +28,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 0b5789e0..44de0dfa 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -31,8 +31,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: diff --git a/.github/workflows/release-integration.yml b/.github/workflows/release-integration.yml index 090ef8ca..09d025cc 100644 --- a/.github/workflows/release-integration.yml +++ b/.github/workflows/release-integration.yml @@ -41,8 +41,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba73bb8d..b031a1fa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,8 +39,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -119,8 +119,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: diff --git a/lib/content/index.js b/lib/content/index.js index e10cd318..84315218 100644 --- a/lib/content/index.js +++ b/lib/content/index.js @@ -172,7 +172,7 @@ module.exports = { /* to be provided by consuming package */ ], ciVersions: {}, - latestCiVersion: 20, + latestCiVersion: 22, lockfile: false, codeowner: '@npm/cli-team', eslint: true, diff --git a/tap-snapshots/test/apply/source-snapshots.js.test.cjs b/tap-snapshots/test/apply/source-snapshots.js.test.cjs index 76b45964..a507e3ec 100644 --- a/tap-snapshots/test/apply/source-snapshots.js.test.cjs +++ b/tap-snapshots/test/apply/source-snapshots.js.test.cjs @@ -374,8 +374,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -438,8 +438,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -475,7 +475,7 @@ jobs: os: windows-latest shell: cmd node-version: - - 20.x + - 22.x runs-on: \${{ matrix.platform.os }} defaults: run: @@ -558,8 +558,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -588,7 +588,7 @@ jobs: os: windows-latest shell: cmd node-version: - - 20.x + - 22.x runs-on: \${{ matrix.platform.os }} defaults: run: @@ -692,8 +692,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -821,8 +821,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -877,8 +877,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -948,8 +948,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -1028,8 +1028,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -1798,8 +1798,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -1852,8 +1852,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -1882,7 +1882,7 @@ jobs: os: windows-latest shell: cmd node-version: - - 20.x + - 22.x runs-on: \${{ matrix.platform.os }} defaults: run: @@ -1952,8 +1952,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -1982,7 +1982,7 @@ jobs: os: windows-latest shell: cmd node-version: - - 20.x + - 22.x runs-on: \${{ matrix.platform.os }} defaults: run: @@ -2062,8 +2062,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -2099,7 +2099,7 @@ jobs: os: windows-latest shell: cmd node-version: - - 20.x + - 22.x runs-on: \${{ matrix.platform.os }} defaults: run: @@ -2188,8 +2188,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -2218,7 +2218,7 @@ jobs: os: windows-latest shell: cmd node-version: - - 20.x + - 22.x runs-on: \${{ matrix.platform.os }} defaults: run: @@ -2322,8 +2322,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -2451,8 +2451,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -2507,8 +2507,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -2578,8 +2578,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -2658,8 +2658,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -3499,8 +3499,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -3529,7 +3529,7 @@ jobs: os: windows-latest shell: cmd node-version: - - 20.x + - 22.x runs-on: \${{ matrix.platform.os }} defaults: run: @@ -3599,8 +3599,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -3629,7 +3629,7 @@ jobs: os: windows-latest shell: cmd node-version: - - 20.x + - 22.x runs-on: \${{ matrix.platform.os }} defaults: run: @@ -3709,8 +3709,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -3746,7 +3746,7 @@ jobs: os: windows-latest shell: cmd node-version: - - 20.x + - 22.x runs-on: \${{ matrix.platform.os }} defaults: run: @@ -3824,8 +3824,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -3953,8 +3953,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -4009,8 +4009,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -4080,8 +4080,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -4160,8 +4160,8 @@ jobs: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: diff --git a/tap-snapshots/test/check/diff-snapshots.js.test.cjs b/tap-snapshots/test/check/diff-snapshots.js.test.cjs index 9bd10de1..5ec168e3 100644 --- a/tap-snapshots/test/check/diff-snapshots.js.test.cjs +++ b/tap-snapshots/test/check/diff-snapshots.js.test.cjs @@ -153,8 +153,8 @@ The repo file audit.yml needs to be updated: uses: actions/setup-node@v3 id: node with: - node-version: 20.x - check-latest: contains('20.x', '.x') + node-version: 22.x + check-latest: contains('22.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -175,7 +175,7 @@ The repo file ci.yml needs to be updated: .github/workflows/ci.yml ======================================== - @@ -76,4 +76,24 @@ + @@ -77,4 +77,24 @@ shell: \${{ matrix.platform.shell }} steps: - name: Checkout diff --git a/test/apply/engines.js b/test/apply/engines.js index bd363a10..9744a50c 100644 --- a/test/apply/engines.js +++ b/test/apply/engines.js @@ -29,7 +29,7 @@ t.test('sets ci versions from engines', async (t) => { t.equal(pkg.engines.node, '>=10') const versions = await getCiJobs(s) - t.equal(versions.lint, '20.x') + t.equal(versions.lint, '22.x') t.strictSame(versions.test, [ '10.0.0', '10.x', @@ -37,6 +37,7 @@ t.test('sets ci versions from engines', async (t) => { '16.x', '18.x', '20.x', + '22.x', ]) }) @@ -55,11 +56,11 @@ t.test('can set ci to latest plus other versions', async (t) => { t.equal(pkg.engines.node, '*') const versions = await getCiJobs(s) - t.equal(versions.lint, '20.x') + t.equal(versions.lint, '22.x') t.strictSame(versions.test, [ '6.x', '8.x', - '20.x', + '22.x', ]) }) @@ -111,8 +112,8 @@ t.test('latest ci versions', async (t) => { t.equal(pkg.engines, undefined) const versions = await getCiJobs(s) - t.equal(versions.lint, '20.x') + t.equal(versions.lint, '22.x') t.strictSame(versions.test, [ - '20.x', + '22.x', ]) })