Skip to content

Commit 4fbcfae

Browse files
authored
feat: move ci to node 22 (#1195)
Some deps are starting to drop node 18. Might as well go to the latest
1 parent a546590 commit 4fbcfae

File tree

11 files changed

+20
-20
lines changed

11 files changed

+20
-20
lines changed

.github/workflows/audit.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
uses: actions/setup-node@v4
2828
id: node
2929
with:
30-
node-version: 18.x
31-
check-latest: contains('18.x', '.x')
30+
node-version: 22.x
31+
check-latest: contains('22.x', '.x')
3232
cache: npm
3333
- name: Install Latest npm
3434
uses: ./.github/actions/install-latest-npm

.github/workflows/ci-cli.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
uses: actions/setup-node@v4
3636
id: node
3737
with:
38-
node-version: 18.x
39-
check-latest: contains('18.x', '.x')
38+
node-version: 22.x
39+
check-latest: contains('22.x', '.x')
4040
cache: npm
4141
- name: Install Latest npm
4242
uses: ./.github/actions/install-latest-npm
@@ -62,7 +62,7 @@ jobs:
6262
os: ubuntu-latest
6363
shell: bash
6464
node-version:
65-
- 18.x
65+
- 22.x
6666
runs-on: ${{ matrix.platform.os }}
6767
defaults:
6868
run:

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
uses: actions/setup-node@v4
3636
id: node
3737
with:
38-
node-version: 18.x
39-
check-latest: contains('18.x', '.x')
38+
node-version: 22.x
39+
check-latest: contains('22.x', '.x')
4040
cache: npm
4141
- name: Install Latest npm
4242
uses: ./.github/actions/install-latest-npm
@@ -62,7 +62,7 @@ jobs:
6262
os: ubuntu-latest
6363
shell: bash
6464
node-version:
65-
- 18.x
65+
- 22.x
6666
runs-on: ${{ matrix.platform.os }}
6767
defaults:
6868
run:
@@ -103,7 +103,7 @@ jobs:
103103
os: ubuntu-latest
104104
shell: bash
105105
node-version:
106-
- 18.x
106+
- 22.x
107107
runs-on: ${{ matrix.platform.os }}
108108
defaults:
109109
run:

.github/workflows/post-dependabot.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
uses: actions/setup-node@v4
2929
id: node
3030
with:
31-
node-version: 18.x
32-
check-latest: contains('18.x', '.x')
31+
node-version: 22.x
32+
check-latest: contains('22.x', '.x')
3333
cache: npm
3434
- name: Install Latest npm
3535
uses: ./.github/actions/install-latest-npm

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
uses: actions/setup-node@v4
3434
id: node
3535
with:
36-
node-version: 18.x
37-
check-latest: contains('18.x', '.x')
36+
node-version: 22.x
37+
check-latest: contains('22.x', '.x')
3838
cache: npm
3939
- name: Install Latest npm
4040
uses: ./.github/actions/install-latest-npm

.github/workflows/update-cli.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
uses: actions/setup-node@v4
2929
id: node
3030
with:
31-
node-version: 18.x
32-
check-latest: contains('18.x', '.x')
31+
node-version: 22.x
32+
check-latest: contains('22.x', '.x')
3333
cache: npm
3434
- name: Install Latest npm
3535
uses: ./.github/actions/install-latest-npm

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
22

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The `content/cli` directory has the most pages so it tends to be most helpful to
4141
GATSBY_CONTENT_IGNORE=cli/v6,cli/v7,cli/v8,cli/v9 npm run develop
4242
```
4343

44-
**For best results use Node 18 and npm 9+**
44+
**For best results use The latest versions of Node.js and npm**
4545

4646
**Gatsby will watch your filesystem looking for updates.** Any content changes you make should be reflected in the site immediately.
4747

cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"author": "GitHub Inc.",
3737
"engines": {
38-
"node": ">=18.0.0"
38+
"node": ">=22.0.0"
3939
},
4040
"templateOSS": {
4141
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
},
9393
"author": "GitHub Inc.",
9494
"engines": {
95-
"node": ">=18.0.0"
95+
"node": ">=22.0.0"
9696
},
9797
"templateOSS": {
9898
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",

scripts/template-oss/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = {
3030
},
3131
},
3232
ciVersions: 'latest',
33-
latestCiVersion: 18,
33+
latestCiVersion: 22,
3434
macCI: false,
3535
windowsCI: false,
3636
lockfile: true,

0 commit comments

Comments
 (0)