feat: move ci to node 22 (#1195)

Some deps are starting to drop node 18. Might as well go to the latest

Gar committed Jul 16, 2024 at 09:58 UTC 4fbcfaea265fae8680630a7ab9dfde0905cce538
11 files changed +20 -20
.github/workflows/audit.yml
+2 -2
@@ -27,8 +27,8 @@ jobs:
27 uses: actions/setup-node@v4
28 id: node
29 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')
32 cache: npm
33 - name: Install Latest npm
34 uses: ./.github/actions/install-latest-npm
.github/workflows/ci-cli.yml
+3 -3
@@ -35,8 +35,8 @@ jobs:
35 uses: actions/setup-node@v4
36 id: node
37 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')
40 cache: npm
41 - name: Install Latest npm
42 uses: ./.github/actions/install-latest-npm
@@ -62,7 +62,7 @@ jobs:
62 os: ubuntu-latest
63 shell: bash
64 node-version:
65 - - 18.x
65 + - 22.x
66 runs-on: ${{ matrix.platform.os }}
67 defaults:
68 run:
.github/workflows/ci.yml
+4 -4
@@ -35,8 +35,8 @@ jobs:
35 uses: actions/setup-node@v4
36 id: node
37 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')
40 cache: npm
41 - name: Install Latest npm
42 uses: ./.github/actions/install-latest-npm
@@ -62,7 +62,7 @@ jobs:
62 os: ubuntu-latest
63 shell: bash
64 node-version:
65 - - 18.x
65 + - 22.x
66 runs-on: ${{ matrix.platform.os }}
67 defaults:
68 run:
@@ -103,7 +103,7 @@ jobs:
103 os: ubuntu-latest
104 shell: bash
105 node-version:
106 - - 18.x
106 + - 22.x
107 runs-on: ${{ matrix.platform.os }}
108 defaults:
109 run:
.github/workflows/post-dependabot.yml
+2 -2
@@ -28,8 +28,8 @@ jobs:
28 uses: actions/setup-node@v4
29 id: node
30 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')
33 cache: npm
34 - name: Install Latest npm
35 uses: ./.github/actions/install-latest-npm
.github/workflows/publish.yml
+2 -2
@@ -33,8 +33,8 @@ jobs:
33 uses: actions/setup-node@v4
34 id: node
35 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')
38 cache: npm
39 - name: Install Latest npm
40 uses: ./.github/actions/install-latest-npm
.github/workflows/update-cli.yml
+2 -2
@@ -28,8 +28,8 @@ jobs:
28 uses: actions/setup-node@v4
29 id: node
30 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')
33 cache: npm
34 - name: Install Latest npm
35 uses: ./.github/actions/install-latest-npm
.nvmrc
+1 -1
@@ -1 +1 @@
1 -18
1 +22
CONTRIBUTING.md
+1 -1
@@ -41,7 +41,7 @@ The `content/cli` directory has the most pages so it tends to be most helpful to
41 GATSBY_CONTENT_IGNORE=cli/v6,cli/v7,cli/v8,cli/v9 npm run develop
42 ```
43
44 -**For best results use Node 18 and npm 9+**
44 +**For best results use The latest versions of Node.js and npm**
45
46 **Gatsby will watch your filesystem looking for updates.** Any content changes you make should be reflected in the site immediately.
47
cli/package.json
+1 -1
@@ -35,7 +35,7 @@
35 },
36 "author": "GitHub Inc.",
37 "engines": {
38 - "node": ">=18.0.0"
38 + "node": ">=22.0.0"
39 },
40 "templateOSS": {
41 "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
package.json
+1 -1
@@ -92,7 +92,7 @@
92 },
93 "author": "GitHub Inc.",
94 "engines": {
95 - "node": ">=18.0.0"
95 + "node": ">=22.0.0"
96 },
97 "templateOSS": {
98 "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
scripts/template-oss/index.js
+1 -1
@@ -30,7 +30,7 @@ module.exports = {
30 },
31 },
32 ciVersions: 'latest',
33 - latestCiVersion: 18,
33 + latestCiVersion: 22,
34 macCI: false,
35 windowsCI: false,
36 lockfile: true,