Skip to content

Build: Move wp/7.1 to Node 24 and npm 11.18 with the npm v12 supply chain defaults - #84161

Draft
manzoorwanijk wants to merge 3 commits into
build/wp-7.1-setup-npmfrom
build/wp-7.1-node-24
Draft

manzoorwanijk wants to merge 3 commits into
build/wp-7.1-setup-npmfrom
build/wp-7.1-node-24

Conversation

@manzoorwanijk

@manzoorwanijk manzoorwanijk commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

What?

See #82328, #72973

Moves wp/7.1 to Node 24.20 and npm 11.18 (npm 12 compatible), with the npm v12 supply chain defaults trunk uses.

Why?

Trunk's publish workflow releases wp/X.Y branches with trunk's Node and npm, so the branch must install, build and run Lerna under them, with the same supply chain policy.

How?

  • .nvmrc 24.20; engines and devEngines require Node 24.18 and npm 11.18.
  • .npmrc adds strict-allow-scripts and allow-git/allow-remote/allow-file = none; allowScripts denies every install script, as on trunk.
  • CI ports trunk's setup-npm action and drops the node_modules cache from setup-node.
  • The lockfile only changes its npm floor.

Merge order: stacked on #84169; merge that first. Publishing wp-7.1 also needs #84160.

Testing Instructions

Rehearsed trunk's npm-wp flow (CLI from #84160) against a local Verdaccio and bare origin, on npm 11.18 and 12.2:

  1. npm ci passes with no EALLOW* or ESTRICTALLOWSCRIPTS.
  2. All 121 packages publish under wp-7.1 and the CLI's verification passes.
  3. Tarballs match the published versions except for source changes since; npm 11 and 12 builds match each other.

Use of AI Tools

Claude Code (Opus) wrote the changes and ran the rehearsals; I reviewed them.

@coderabbitai

coderabbitai Bot commented Oct 7, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

📦 Bundle size

Size Change: 0 B

Total Size: 7.75 MB

b6fecd9 Run

🏁 Flaky tests

Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

Should save the changes in /test/e2e/specs/editor/plugins/wp-editor-meta-box.spec.js, passed after 2 failed attempts.
TimeoutError: page.waitForFunction: Timeout 10000ms exceeded.
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/wp-editor-meta-box.spec.js:37:14
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
  - waiting for locator('role=button[name="Visual"i]')

    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/wp-editor-meta-box.spec.js:36:55

b6fecd9 Run

`storybook-check.yml` installs `@storybook/test-runner` with
`npm install --no-save`, which pulls in `@swc/core`. It is not in the
lockfile, so the lockfile-based install never saw its postinstall script,
and `strict-allow-scripts` failed the Storybook job. Trunk denies it too.
@manzoorwanijk
manzoorwanijk changed the base branch from wp/7.1 to build/wp-7.1-setup-npm October 7, 2026 13:04
@manzoorwanijk manzoorwanijk reopened this Oct 7, 2026
@manzoorwanijk manzoorwanijk added the [Type] Build Tooling Issues or PRs related to build tooling label Oct 8, 2026
@manzoorwanijk manzoorwanijk self-assigned this Oct 8, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

Status: Backlog
Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant