Skip to content

chore: use node-version-file for CI workflows#13076

Merged
GeorgeDong32 merged 1 commit intomainfrom
fix/ci-node-version
Feb 26, 2026
Merged

chore: use node-version-file for CI workflows#13076
GeorgeDong32 merged 1 commit intomainfrom
fix/ci-node-version

Conversation

@EurFelux
Copy link
Copy Markdown
Collaborator

@EurFelux EurFelux commented Feb 26, 2026

What this PR does

Before this PR:

  • CI workflows hardcoded node-version: 22
  • .node-version and .nvmrc files were at version 22

After this PR:

  • All CI workflows read Node version from .node-version file using node-version-file: '.node-version'
  • .node-version and .nvmrc updated to 24.11.1 to match Electron runtime version

Fixes #

Why we need it and why it was done in this way

The project recently updated Node.js requirement to 24.11.1 in package.json, but the CI workflows were still hardcoded to use Node 22, causing warning. This change makes the CI workflows automatically use the Node version defined in .node-version file, ensuring consistency between local development and CI environments.

The following tradeoffs were made:

  • Using .node-version instead of reading from package.json directly - simpler and more compatible with GitHub Actions

The following alternatives were considered:

Links to places where the discussion took place:

Breaking changes

If this PR introduces breaking changes, please describe the changes and the impact on users.

Special notes for your reviewer

Checklist

This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

Release note

NONE

Update workflows to read Node version from .node-version file instead
of hardcoding node-version: 22. Also bump Node version to 24.11.1 to
match Electron runtime.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Copy link
Copy Markdown
Collaborator

@GeorgeDong32 GeorgeDong32 left a comment

Choose a reason for hiding this comment

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

LGTM! Using node-version-file is the recommended approach for managing Node.js versions in GitHub Actions. The change aligns CI with package.json requirements (Node 24.11.1) and improves maintainability.

@GeorgeDong32 GeorgeDong32 merged commit ef14219 into main Feb 26, 2026
18 checks passed
@GeorgeDong32 GeorgeDong32 deleted the fix/ci-node-version branch February 26, 2026 15:50
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