From 4fbcfaea265fae8680630a7ab9dfde0905cce538 Mon Sep 17 00:00:00 2001 From: Gar Date: Tue, 16 Jul 2024 09:58:29 -0700 Subject: [PATCH] feat: move ci to node 22 (#1195) Some deps are starting to drop node 18. Might as well go to the latest --- .github/workflows/audit.yml | 4 ++-- .github/workflows/ci-cli.yml | 6 +++--- .github/workflows/ci.yml | 8 ++++---- .github/workflows/post-dependabot.yml | 4 ++-- .github/workflows/publish.yml | 4 ++-- .github/workflows/update-cli.yml | 4 ++-- .nvmrc | 2 +- CONTRIBUTING.md | 2 +- cli/package.json | 2 +- package.json | 2 +- scripts/template-oss/index.js | 2 +- 11 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index fc34b965cd3..2728d28f233 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -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 diff --git a/.github/workflows/ci-cli.yml b/.github/workflows/ci-cli.yml index 4f5768cb4da..d0724327268 100644 --- a/.github/workflows/ci-cli.yml +++ b/.github/workflows/ci-cli.yml @@ -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 @@ -62,7 +62,7 @@ jobs: os: ubuntu-latest shell: bash node-version: - - 18.x + - 22.x runs-on: ${{ matrix.platform.os }} defaults: run: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 644e8e2d20b..235d70aaee8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -62,7 +62,7 @@ jobs: os: ubuntu-latest shell: bash node-version: - - 18.x + - 22.x runs-on: ${{ matrix.platform.os }} defaults: run: @@ -103,7 +103,7 @@ jobs: os: ubuntu-latest shell: bash node-version: - - 18.x + - 22.x runs-on: ${{ matrix.platform.os }} defaults: run: diff --git a/.github/workflows/post-dependabot.yml b/.github/workflows/post-dependabot.yml index 05c2466af83..23dd57b84ea 100644 --- a/.github/workflows/post-dependabot.yml +++ b/.github/workflows/post-dependabot.yml @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 963f2f6cdd7..294342a1460 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/.github/workflows/update-cli.yml b/.github/workflows/update-cli.yml index 14eb3290695..154e97702b6 100644 --- a/.github/workflows/update-cli.yml +++ b/.github/workflows/update-cli.yml @@ -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 diff --git a/.nvmrc b/.nvmrc index 3c032078a4a..2bd5a0a98a3 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18 +22 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5b6182e61d2..fdab77759b2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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. diff --git a/cli/package.json b/cli/package.json index 5034e1b1ae1..a6c160cc687 100644 --- a/cli/package.json +++ b/cli/package.json @@ -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.", diff --git a/package.json b/package.json index 9fe5f995923..033be7b57a7 100644 --- a/package.json +++ b/package.json @@ -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.", diff --git a/scripts/template-oss/index.js b/scripts/template-oss/index.js index ba2a252659c..180fd976c8c 100644 --- a/scripts/template-oss/index.js +++ b/scripts/template-oss/index.js @@ -30,7 +30,7 @@ module.exports = { }, }, ciVersions: 'latest', - latestCiVersion: 18, + latestCiVersion: 22, macCI: false, windowsCI: false, lockfile: true,