Skip to content

chore: keep .nvmrc in sync with .node-version on bot updates#3711

Merged
aterga merged 1 commit intomainfrom
chore/sync-nvmrc-with-node-version
Mar 30, 2026
Merged

chore: keep .nvmrc in sync with .node-version on bot updates#3711
aterga merged 1 commit intomainfrom
chore/sync-nvmrc-with-node-version

Conversation

@aterga
Copy link
Copy Markdown
Collaborator

@aterga aterga commented Mar 26, 2026

Summary

  • Updates the node update workflow to also write .nvmrc when bumping the node version, keeping it in sync with .node-version
  • Adds .nvmrc to BOT_APPROVED_FILES so the bot PR passes the repo policy check

Addresses review feedback on #3707 — the bot was only updating .node-version but not .nvmrc, causing developers using nvm to potentially run a different Node version than CI.

Test plan

  • Verify CI passes
  • After merging, re-run the node update bot workflow to confirm .nvmrc is included in the bot PR

🤖 Generated with Claude Code

Update the node update workflow to also write .nvmrc when bumping
the node version, and add .nvmrc to the bot-approved files list
so the bot PR passes the repo policy check.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 26, 2026 16:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the scheduled Node version bump workflow so it keeps both developer-local (.nvmrc) and CI/tooling (.node-version) Node version pins aligned, and ensures bot PRs modifying .nvmrc comply with repository policy.

Changes:

  • Write the bumped Node version to .nvmrc alongside .node-version in the update workflow.
  • Expand the workflow PR “add-paths” to include .nvmrc.
  • Add .nvmrc to the bot-approved file allowlist.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/update-node.yml Ensures the node update bot updates and commits both .node-version and .nvmrc.
.github/repo_policies/BOT_APPROVED_FILES Allows bot PRs to include .nvmrc changes under repo policy checks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aterga aterga requested a review from sea-snake March 30, 2026 08:13
@aterga aterga added this pull request to the merge queue Mar 30, 2026
Merged via the queue into main with commit 9afdc15 Mar 30, 2026
58 checks passed
@aterga aterga deleted the chore/sync-nvmrc-with-node-version branch March 30, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants