Skip to content

Repair wp/5.7 branch Actions: Always read the Node.js version from .nvmrc - #84770

Open
desrosj wants to merge 3 commits into
fix-actions-5.7/pin-runner-imagesfrom
fix-actions-5.7/read-node-version-from-nvmrc
Open

desrosj wants to merge 3 commits into
fix-actions-5.7/pin-runner-imagesfrom
fix-actions-5.7/read-node-version-from-nvmrc

Conversation

@desrosj

@desrosj desrosj commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Part of #82936.

What?

Replaces the three remaining hardcoded node-version: 14.x values in wp/5.7's actions/setup-node steps with node-version-file: '.nvmrc', so .nvmrc is the single source of truth for the Node.js version this branch tests against:

Workflow Job
end2end-test.yml admin
static-checks.yml check
unit-test.yml unit-php

Each of these steps was also named Use Node.js 14.x, so the name is shortened to Use Node.js, matching the steps that already read .nvmrc. All five actions/setup-node steps on this branch are now named and configured the same way. One commit per workflow.

No functional change. .nvmrc reads 14, which resolves to the same Node.js release as the 14.x range these steps requested.

Why?

create-block.yml and unit-test.yml's unit-js job already read .nvmrc, while the three steps above still hardcoded the version. A future Node.js bump would have to update .nvmrc and all three workflows, and nothing would fail if one were missed.

Use of AI Tools

This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.

@desrosj desrosj added the [Type] Build Tooling Issues or PRs related to build tooling label Oct 15, 2026
@desrosj desrosj self-assigned this Oct 15, 2026
@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8db413a0-109a-48f2-b5c2-c1f80d29fc16

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · 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

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: desrosj <desrosj@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@desrosj
desrosj removed this pull request from stack #84872 October 16, 2026 15:52
@desrosj
desrosj added this pull request to stack #84945 October 16, 2026 15:53
@desrosj desrosj changed the title Repair wp/5.7 branch Actions: Always read Node.js version from .nvmrc file Repair wp/5.7 branch Actions: Always read the Node.js version from .nvmrc Oct 16, 2026

@ramonjd ramonjd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The failing checks fail the same way on the base PR, and pass at the top of this stack (#84796).

@desrosj
desrosj removed this pull request from stack #84945 October 21, 2026 19:48
@desrosj
desrosj added this pull request to stack #85354 October 21, 2026 19:48

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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants