[CI] Read the Node version from .nvmrc - #4542
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (19)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe CI workflows now read the Node.js version from ChangesCI Node.js version and triggers
Suggested reviewers: Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The workflows consistently use Node 24.19 from Architecture SummaryArchitecture risk: 🔵 Low · up to The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency. Changed systems: None identified. Architecture concerns Review detailsBefore / after behavior
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
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. Comment |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Several workflow path filters omit .nvmrc, allowing Node-version-only changes to bypass affected CI checks.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Centralizes the CI Node.js version in .nvmrc and updates 14 workflows to use it.
Changes:
- Adds Node.js
24.19to.nvmrc. - Replaces hardcoded or missing workflow versions with
node-version-file. - Adds Node setup to
yarn-validation.
| File | Review |
|---|---|
.nvmrc |
Defines the shared Node.js version; path filters should include it. |
.github/workflows/yarn-validation.yml |
Reads .nvmrc; trigger paths should include it. |
.github/workflows/static-root-checks.yml |
Reads .nvmrc; trigger paths should include it. |
.github/workflows/static-example-apps-checks.yml |
Reads .nvmrc; trigger paths should include it. |
.github/workflows/run-jest-tests.yml |
Reads .nvmrc; trigger paths should include it. |
.github/workflows/rngh-api-v3.yml |
Reads .nvmrc; trigger paths should include it. |
.github/workflows/publish-release.yml |
Reads .nvmrc. |
.github/workflows/macos-build.yml |
Reads .nvmrc; trigger paths should include it. |
.github/workflows/kotlin-lint.yml |
Reads .nvmrc; trigger paths should include it. |
.github/workflows/ios-spm-build-test.yml |
Reads .nvmrc; trigger paths should include it. |
.github/workflows/ios-e2e.yml |
Reads .nvmrc. |
.github/workflows/ios-build.yml |
Reads .nvmrc. |
.github/workflows/docs-check.yml |
Reads .nvmrc; trigger paths should include it. |
.github/workflows/android-e2e.yml |
Reads .nvmrc. |
.github/workflows/android-build.yml |
Reads .nvmrc. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
## Description Every workflow hardcoded its own `node-version`, so the version lived in 14 places and drifted. `macos-build` was still on 22 because #3753 bumped only the `setup-node` action version in that file, and `yarn-validation` had no pin at all and ran whatever Node the runner happens to ship. Both cases were invisible until you grepped for them. All 14 workflows that set up Node now read `node-version-file: '.nvmrc'`, which holds `24.19`, so bumping Node is a one-line change. ## Test plan Checks should pass
0564cd2 to
0accfd6
Compare
m-bert
left a comment
There was a problem hiding this comment.
Is there a reason behind keeping it at 24?
Not really; I just took what was already set and moved it to a single source of truth |

Description
Every workflow hardcoded its own
node-version, so the version lived in 14 places and drifted.macos-buildwas still on 22 because #3753 bumped only thesetup-nodeaction version in that file, andyarn-validationhad no pin at all and ran whatever Node the runner happens to ship. Both cases were invisible until you grepped for them.All 14 workflows that set up Node now read
node-version-file: '.nvmrc', which holds24.19, so bumping Node is a one-line change.Test plan
Checks should pass