Skip to content

Commit

Permalink
feat: move ci to node 22
Browse files Browse the repository at this point in the history
Some deps are starting to drop node 18. Might as well go to the latest
  • Loading branch information
wraithgar committed Jul 16, 2024
1 parent a546590 commit e4ea07b
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
uses: actions/setup-node@v4
id: node
with:
node-version: 18.x
check-latest: contains('18.x', '.x')
node-version: 22.x
check-latest: contains('22.x', '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
uses: actions/setup-node@v4
id: node
with:
node-version: 18.x
check-latest: contains('18.x', '.x')
node-version: 22.x
check-latest: contains('22.x', '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
Expand All @@ -62,7 +62,7 @@ jobs:
os: ubuntu-latest
shell: bash
node-version:
- 18.x
- 22.x
runs-on: ${{ matrix.platform.os }}
defaults:
run:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
uses: actions/setup-node@v4
id: node
with:
node-version: 18.x
check-latest: contains('18.x', '.x')
node-version: 22.x
check-latest: contains('22.x', '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
Expand All @@ -62,7 +62,7 @@ jobs:
os: ubuntu-latest
shell: bash
node-version:
- 18.x
- 22.x
runs-on: ${{ matrix.platform.os }}
defaults:
run:
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
os: ubuntu-latest
shell: bash
node-version:
- 18.x
- 22.x
runs-on: ${{ matrix.platform.os }}
defaults:
run:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/post-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
uses: actions/setup-node@v4
id: node
with:
node-version: 18.x
check-latest: contains('18.x', '.x')
node-version: 22.x
check-latest: contains('22.x', '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
uses: actions/setup-node@v4
id: node
with:
node-version: 18.x
check-latest: contains('18.x', '.x')
node-version: 22.x
check-latest: contains('22.x', '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
uses: actions/setup-node@v4
id: node
with:
node-version: 18.x
check-latest: contains('18.x', '.x')
node-version: 22.x
check-latest: contains('22.x', '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
Expand Down
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"author": "GitHub Inc.",
"engines": {
"node": ">=18.0.0"
"node": ">=22.0.0"
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
},
"author": "GitHub Inc.",
"engines": {
"node": ">=18.0.0"
"node": ">=22.0.0"
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
Expand Down
2 changes: 1 addition & 1 deletion scripts/template-oss/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {
},
},
ciVersions: 'latest',
latestCiVersion: 18,
latestCiVersion: 22,
macCI: false,
windowsCI: false,
lockfile: true,
Expand Down

0 comments on commit e4ea07b

Please sign in to comment.