Skip to content

chore: require Node.js 24#644

Merged
RobinBol merged 1 commit into
developfrom
chore/require-node-24
Jul 8, 2026
Merged

chore: require Node.js 24#644
RobinBol merged 1 commit into
developfrom
chore/require-node-24

Conversation

@RobinBol

@RobinBol RobinBol commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Bumps the required Node.js version to 24 and introduces an .nvmrc as the single source of truth.

homey-api@3.17.7 (a direct dependency) declares engines.node: ">=24", so the effective runtime floor was already Node 24, while this package's own engines.node still said >=22. This aligns the declared requirement with reality.

Changes:

  • package.json engines.node: >=22 -> >=24
  • Added .nvmrc pinned to 24
  • All CI workflows now use node-version-file: '.nvmrc' instead of a hardcoded version, so the version lives in one place

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Aligns this package’s declared Node.js runtime requirement with an existing dependency constraint (homey-api now requiring Node.js 24), and centralizes the Node version used by CI into a single .nvmrc file.

Changes:

  • Bump package.json engines.node from >=22 to >=24.
  • Add .nvmrc set to 24.
  • Update all GitHub Actions workflows to use actions/setup-node with node-version-file: '.nvmrc' instead of hardcoded versions.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
package.json Raises the declared Node engine requirement to >=24.
.nvmrc Introduces a shared Node version reference for local dev + CI.
.github/workflows/update-homey-lib.yml Switches Node setup to read from .nvmrc.
.github/workflows/test.yml Switches Node setup to read from .nvmrc.
.github/workflows/publish-package-npm.yml Switches Node setup to read from .nvmrc.
.github/workflows/npm-version.yml Switches Node setup to read from .nvmrc.
.github/workflows/lint.yml Switches Node setup to read from .nvmrc.

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

Comment thread package.json
homey-api@3.17.7 declares engines.node >=24, so the effective runtime
floor is Node 24 even though package.json still said >=22. Bump
engines.node to >=24 and add an .nvmrc pinned to 24 as the single source
of truth. CI workflows now read the version via node-version-file: .nvmrc
instead of hardcoding it.
@RobinBol RobinBol force-pushed the chore/require-node-24 branch from 8497ac8 to e513450 Compare July 8, 2026 14:15
@RobinBol RobinBol marked this pull request as ready for review July 8, 2026 14:16
@RobinBol RobinBol merged commit 6ca7f0d into develop Jul 8, 2026
2 checks passed
@RobinBol RobinBol deleted the chore/require-node-24 branch July 8, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants