From 442a9fcc0add4bd6f4a4f460876298fa1f6dedef Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Mon, 20 Nov 2023 12:00:09 -0500 Subject: [PATCH] Update to Node.js 18.x, but also test 20.x. --- .github/workflows/create-block.yml | 2 +- .github/workflows/unit-test.yml | 2 +- .nvmrc | 2 +- package-lock.json | 4 ++-- package.json | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/create-block.yml b/.github/workflows/create-block.yml index 0e4325b53f69da..59d594a5f1ae72 100644 --- a/.github/workflows/create-block.yml +++ b/.github/workflows/create-block.yml @@ -20,7 +20,7 @@ jobs: strategy: fail-fast: false matrix: - node: ['16'] + node: ['18', '20'] os: [macos-latest, ubuntu-latest, windows-latest] steps: diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 78f70cc4ed9f74..bc4e9702317f5a 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -28,7 +28,7 @@ jobs: strategy: fail-fast: false matrix: - node: ['16'] + node: ['18', '20'] steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.nvmrc b/.nvmrc index b6a7d89c68e0ca..3c032078a4a21c 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16 +18 diff --git a/package-lock.json b/package-lock.json index 04ca205868578e..cdced5c10b669a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -248,8 +248,8 @@ "worker-farm": "1.7.0" }, "engines": { - "node": ">=16.0.0", - "npm": ">=8 <9" + "node": ">=18.18.0", + "npm": ">=9.8.1" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index bc4f43a47d03f9..82904189fb6ae5 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,8 @@ "url": "https://github.com/WordPress/gutenberg/issues" }, "engines": { - "node": ">=16.0.0", - "npm": ">=8 <9" + "node": ">=18.18.0", + "npm": ">=9.8.1 <10" }, "config": { "IS_GUTENBERG_PLUGIN": true