diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index d46429e1..228d7ba1 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -19,7 +19,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9457d1c..e9f4a083 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -38,12 +38,12 @@ jobs: fail-fast: false matrix: node-version: - - 12.13.0 - - 12.x - - 14.15.0 + - 14.17.0 - 14.x - - 16.0.0 + - 16.13.0 - 16.x + - 18.0.0 + - 18.x platform: - os: ubuntu-latest shell: bash diff --git a/.github/workflows/post-dependabot.yml b/.github/workflows/post-dependabot.yml index 75ff535f..824b5caf 100644 --- a/.github/workflows/post-dependabot.yml +++ b/.github/workflows/post-dependabot.yml @@ -22,7 +22,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 2ffe0e24..d6842f10 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -24,7 +24,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 434bd7aa..fb933080 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -26,7 +26,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -57,7 +57,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -89,7 +89,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml index c3388210..db19c2b4 100644 --- a/.github/workflows/release-test.yml +++ b/.github/workflows/release-test.yml @@ -22,7 +22,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -34,12 +34,12 @@ jobs: fail-fast: false matrix: node-version: - - 12.13.0 - - 12.x - - 14.15.0 + - 14.17.0 - 14.x - - 16.0.0 + - 16.13.0 - 16.x + - 18.0.0 + - 18.x platform: - os: ubuntu-latest shell: bash diff --git a/lib/content/index.js b/lib/content/index.js index 66c67dc6..ddaef336 100644 --- a/lib/content/index.js +++ b/lib/content/index.js @@ -102,7 +102,7 @@ module.exports = { // setting allows us to call a workflow by any name during release releaseTest: 'release-test.yml', distPaths: ['bin/', 'lib/'], - ciVersions: ['12.13.0', '12.x', '14.15.0', '14.x', '16.0.0', '16.x'], + ciVersions: ['14.17.0', '14.x', '16.13.0', '16.x', '18.0.0', '18.x'], lockfile: false, npmBin: 'npm', unwantedPackages: [ diff --git a/package.json b/package.json index e75e5f78..99833dfd 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,6 @@ "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten." }, "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } } diff --git a/tap-snapshots/test/apply/full-content.js.test.cjs b/tap-snapshots/test/apply/full-content.js.test.cjs index 6f30b7c2..fddf69da 100644 --- a/tap-snapshots/test/apply/full-content.js.test.cjs +++ b/tap-snapshots/test/apply/full-content.js.test.cjs @@ -186,7 +186,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -223,7 +223,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -235,12 +235,12 @@ jobs: fail-fast: false matrix: node-version: - - 12.13.0 - - 12.x - - 14.15.0 + - 14.17.0 - 14.x - - 16.0.0 + - 16.13.0 - 16.x + - 18.0.0 + - 18.x platform: - os: ubuntu-latest shell: bash @@ -357,7 +357,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -405,7 +405,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -447,7 +447,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -478,7 +478,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -510,7 +510,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -547,7 +547,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -559,12 +559,12 @@ jobs: fail-fast: false matrix: node-version: - - 12.13.0 - - 12.x - - 14.15.0 + - 14.17.0 - 14.x - - 16.0.0 + - 16.13.0 - 16.x + - 18.0.0 + - 18.x platform: - os: ubuntu-latest shell: bash @@ -689,7 +689,7 @@ package.json "lib/" ], "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" }, "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", @@ -922,7 +922,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -963,7 +963,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -975,12 +975,12 @@ jobs: fail-fast: false matrix: node-version: - - 12.13.0 - - 12.x - - 14.15.0 + - 14.17.0 - 14.x - - 16.0.0 + - 16.13.0 - 16.x + - 18.0.0 + - 18.x platform: - os: ubuntu-latest shell: bash @@ -1058,7 +1058,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -1070,12 +1070,12 @@ jobs: fail-fast: false matrix: node-version: - - 12.13.0 - - 12.x - - 14.15.0 + - 14.17.0 - 14.x - - 16.0.0 + - 16.13.0 - 16.x + - 18.0.0 + - 18.x platform: - os: ubuntu-latest shell: bash @@ -1149,7 +1149,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -1161,12 +1161,12 @@ jobs: fail-fast: false matrix: node-version: - - 12.13.0 - - 12.x - - 14.15.0 + - 14.17.0 - 14.x - - 16.0.0 + - 16.13.0 - 16.x + - 18.0.0 + - 18.x platform: - os: ubuntu-latest shell: bash @@ -1283,7 +1283,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -1331,7 +1331,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -1373,7 +1373,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -1404,7 +1404,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -1436,7 +1436,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -1473,7 +1473,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -1485,12 +1485,12 @@ jobs: fail-fast: false matrix: node-version: - - 12.13.0 - - 12.x - - 14.15.0 + - 14.17.0 - 14.x - - 16.0.0 + - 16.13.0 - 16.x + - 18.0.0 + - 18.x platform: - os: ubuntu-latest shell: bash @@ -1622,7 +1622,7 @@ package.json "lib/" ], "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" }, "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", @@ -1743,7 +1743,7 @@ workspaces/a/package.json "lib/" ], "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" }, "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", @@ -1819,7 +1819,7 @@ workspaces/b/package.json "lib/" ], "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" }, "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", @@ -1898,7 +1898,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -1910,12 +1910,12 @@ jobs: fail-fast: false matrix: node-version: - - 12.13.0 - - 12.x - - 14.15.0 + - 14.17.0 - 14.x - - 16.0.0 + - 16.13.0 - 16.x + - 18.0.0 + - 18.x platform: - os: ubuntu-latest shell: bash @@ -1993,7 +1993,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -2005,12 +2005,12 @@ jobs: fail-fast: false matrix: node-version: - - 12.13.0 - - 12.x - - 14.15.0 + - 14.17.0 - 14.x - - 16.0.0 + - 16.13.0 - 16.x + - 18.0.0 + - 18.x platform: - os: ubuntu-latest shell: bash @@ -2084,7 +2084,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -2115,7 +2115,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -2147,7 +2147,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -2184,7 +2184,7 @@ jobs: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v @@ -2196,12 +2196,12 @@ jobs: fail-fast: false matrix: node-version: - - 12.13.0 - - 12.x - - 14.15.0 + - 14.17.0 - 14.x - - 16.0.0 + - 16.13.0 - 16.x + - 18.0.0 + - 18.x platform: - os: ubuntu-latest shell: bash @@ -2376,7 +2376,7 @@ workspaces/a/package.json "lib/" ], "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" }, "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", @@ -2448,7 +2448,7 @@ workspaces/b/package.json "lib/" ], "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" }, "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", diff --git a/tap-snapshots/test/check/diffs.js.test.cjs b/tap-snapshots/test/check/diffs.js.test.cjs index 5da3c33e..8da852c1 100644 --- a/tap-snapshots/test/check/diffs.js.test.cjs +++ b/tap-snapshots/test/check/diffs.js.test.cjs @@ -246,10 +246,10 @@ The repo file ci.yml needs to be updated: matrix: node-version: + - 10 - - 12.13.0 - - 12.x - - 14.15.0 + - 14.17.0 - 14.x + - 16.13.0 + - 16.x To correct it: npx template-oss-apply --force @@ -265,10 +265,10 @@ The repo file release-test.yml needs to be updated: matrix: node-version: + - 10 - - 12.13.0 - - 12.x - - 14.15.0 + - 14.17.0 - 14.x + - 16.13.0 + - 16.x To correct it: npx template-oss-apply --force @@ -278,7 +278,7 @@ The module file package.json needs to be updated: package.json ======================================== - "engines.node" is "^12.13.0 || ^14.15.0 || >=16.0.0", expected "^10.0.0 || ^12.13.0 || ^14.15.0 || >=16.0.0" + "engines.node" is "^14.17.0 || ^16.13.0 || >=18.0.0", expected "^10.0.0 || ^14.17.0 || ^16.13.0 || >=18.0.0" To correct it: npx template-oss-apply --force @@ -393,7 +393,7 @@ The repo file audit.yml needs to be updated: git config --global user.name "npm CLI robot" - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Update npm to latest run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v diff --git a/tap-snapshots/test/check/index.js.test.cjs b/tap-snapshots/test/check/index.js.test.cjs index 4bf7260c..a641d719 100644 --- a/tap-snapshots/test/check/index.js.test.cjs +++ b/tap-snapshots/test/check/index.js.test.cjs @@ -50,7 +50,7 @@ The module file package.json needs to be updated: ======================================== "author" is missing, expected "GitHub Inc." "engines" is missing, expected { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } "files" is missing, expected [ "bin/", @@ -130,7 +130,7 @@ The module file package.json needs to be updated: ======================================== "author" is missing, expected "GitHub Inc." "engines" is missing, expected { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } "files" is missing, expected [ "bin/", @@ -192,7 +192,7 @@ The module file package.json needs to be updated: ======================================== "author" is missing, expected "GitHub Inc." "engines" is missing, expected { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } "files" is missing, expected [ "bin/", @@ -254,7 +254,7 @@ The module file package.json needs to be updated: ======================================== "author" is missing, expected "GitHub Inc." "engines" is missing, expected { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } "files" is missing, expected [ "bin/",