diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 43b92e2cd7a8e..a21d8f814af42 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -71,11 +71,13 @@ jobs: # - Run performance tests (current commit). # - Print performance tests results. # - Check out target commit (target branch or previous commit). + # - Switch Node.js versions if necessary. # - Install npm dependencies. # - Build WordPress. # - Run performance tests (previous/target commit). # - Print target performance tests results. # - Reset to original commit. + # - Switch Node.js versions if necessary. # - Install npm dependencies. # - Set the environment to the baseline version. # - Run baseline performance tests. @@ -182,6 +184,12 @@ jobs: fi git reset --hard $TARGET_SHA + - name: Set up Node.js + uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 + with: + node-version-file: '.nvmrc' + cache: npm + - name: Install npm dependencies run: npm ci @@ -201,6 +209,12 @@ jobs: - name: Reset to original commit run: git reset --hard $GITHUB_SHA + - name: Set up Node.js + uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 + with: + node-version-file: '.nvmrc' + cache: npm + - name: Install npm dependencies run: npm ci diff --git a/package-lock.json b/package-lock.json index 93a2d82f818da..fddd833e8f89c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -159,8 +159,8 @@ "webpack-livereload-plugin": "3.0.2" }, "engines": { - "node": ">=20.9.0", - "npm": ">=10.1.0 <11" + "node": ">=20.10.0", + "npm": ">=10.2.3" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index f400356ceedf5..9176d1bb471fb 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "url": "https://develop.svn.wordpress.org/trunk" }, "engines": { - "node": ">=20.9.0", - "npm": ">=10.1.0 <11" + "node": ">=20.10.0", + "npm": ">=10.2.3" }, "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", @@ -198,4 +198,4 @@ "sync-gutenberg-packages": "grunt sync-gutenberg-packages", "postsync-gutenberg-packages": "grunt wp-packages:sync-stable-blocks && grunt build --dev && grunt build" } -} \ No newline at end of file +}