Skip to content

Commit

Permalink
feat: move ci to node 22 (#1195)
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 4fbcfae
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 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 .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
22
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The `content/cli` directory has the most pages so it tends to be most helpful to
GATSBY_CONTENT_IGNORE=cli/v6,cli/v7,cli/v8,cli/v9 npm run develop
```

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

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

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 4fbcfae

Please sign in to comment.