Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/create-block.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@ jobs:
fail-fast: false
matrix:
event: ['${{ github.event_name }}']
node: ['20', '22', '24']
node: ['24', '26']
os: ['macos-15', 'ubuntu-24.04', 'windows-2025']
exclude:
# On PRs: Only test Node 20 on Ubuntu
# Only test Node 24 on Ubuntu for pull requests.
- event: 'pull_request'
node: '22'
- event: 'pull_request'
node: '24'
node: '26'
- event: 'pull_request'
os: 'macos-15'
- event: 'pull_request'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/static-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permissions: {}

jobs:
check:
name: All${{ (matrix.node != '20' || matrix.os != 'ubuntu-24.04') && format(' (Node.js {0} on {1})', matrix.node, contains(matrix.os, 'macos-') && 'MacOS' || contains(matrix.os, 'windows-') && 'Windows' || 'Linux') || '' }}
name: All${{ (matrix.node != '24' || matrix.os != 'ubuntu-24.04') && format(' (Node.js {0} on {1})', matrix.node, contains(matrix.os, 'macos-') && 'MacOS' || contains(matrix.os, 'windows-') && 'Windows' || 'Linux') || '' }}
runs-on: ${{ matrix.os }}
env:
NODE_OPTIONS: --max-old-space-size=4096
Expand All @@ -31,7 +31,7 @@ jobs:
strategy:
matrix:
event: ['${{ github.event_name }}']
node: ['20', '22', '24']
node: ['24', '26']
os: ['macos-15', 'ubuntu-24.04', 'windows-2025']

include:
Expand All @@ -40,9 +40,9 @@ jobs:
os: 'ubuntu-24.04'
annotations: true
exclude:
# On PRs: Only test Node 20 on Ubuntu and Windows
# Only test Node 24 on Ubuntu and Windows for pull requests.
- event: 'pull_request'
node: '22'
node: '26'
- event: 'pull_request'
os: 'macos-15'

Expand All @@ -59,7 +59,7 @@ jobs:
cache: npm

- name: Pin npm version for consistency
run: npm install -g npm@10
run: npm install -g npm@11

- name: npm install
# A "full" install is executed, since `npm ci` does not always exit
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,12 @@ jobs:
fail-fast: false
matrix:
event: ['${{ github.event_name }}']
node: ['20', '22', '24']
node: ['24', '26']
shard: ['1/4', '2/4', '3/4', '4/4']
exclude:
# On PRs: Only test Node 20
# Only test Node 24 for pull requests.
- event: 'pull_request'
node: '22'
- event: 'pull_request'
node: '24'
node: '26'

steps:
- name: Checkout repository
Expand Down Expand Up @@ -87,13 +85,11 @@ jobs:
fail-fast: false
matrix:
event: ['${{ github.event_name }}']
node: ['20', '22', '24']
node: ['24', '26']
exclude:
# On PRs: Only test Node 20
- event: 'pull_request'
node: '22'
# On PRs: Only test Node 24
- event: 'pull_request'
node: '24'
node: '26'

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
24.18
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The following guide is for setting up your local environment to contribute to th
## Prerequisites

- Node.js
Gutenberg is a JavaScript project that requires [Node.js](https://nodejs.org/). The project is currently built using Node.js v20 and npm v10. Though best efforts are made to always use the Active LTS version of Node.js, this will not always be the case. For more details, please refer to the [Node.js release schedule](https://github.com/nodejs/Release#release-schedule).
Gutenberg is a JavaScript project that requires [Node.js](https://nodejs.org/). The project is currently built using Node.js v24 and npm v11. Though best efforts are made to always use the Active LTS version of Node.js, this will not always be the case. For more details, please refer to the [Node.js release schedule](https://github.com/nodejs/Release#release-schedule).

We recommend using the [Node Version Manager](https://github.com/nvm-sh/nvm) (nvm) since it is the easiest way to install and manage node for macOS, Linux, and Windows 10 using WSL2. See [our Development Tools guide](/docs/getting-started/devenv/README.md#development-tools) or the Nodejs site for additional installation instructions.

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"url": "https://github.com/WordPress/gutenberg/issues"
},
"engines": {
"node": ">=20.19.0",
"npm": ">=10.2.3"
"node": ">=24.18.0",
"npm": ">=11.16.0"
},
"wpPlugin": {
"name": "gutenberg",
Expand Down
Loading