Skip to content

Comments

fix: parse node and npm version from package.json#72

Merged
susnux merged 1 commit intomainfrom
fix/read-package-engines
Oct 21, 2025
Merged

fix: parse node and npm version from package.json#72
susnux merged 1 commit intomainfrom
fix/read-package-engines

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Oct 20, 2025

This uses the engines, devEngines or packageManager fields of the package.json to properly setup the environment.
Its required as setup-node does not yet know about devEngines and also does not setup the package manager - and never will.

Details

Now resolved:

Important ⚠️

Before merging: If accepted I would transfer the action for parsing into this organization so everyone can contribute and its not owned by a single person.

@susnux susnux requested a review from ShGKme October 20, 2025 15:26
@susnux susnux force-pushed the fix/read-package-engines branch from 09755f5 to a016a0a Compare October 20, 2025 15:29
@susnux susnux requested a review from artonge October 20, 2025 19:53
@susnux susnux added type: CI 🤖 CI related type: bug 🐛 Something isn't working labels Oct 21, 2025
@artonge
Copy link
Contributor

artonge commented Oct 21, 2025

Other solutions would be to either:

  1. Extend https://github.com/skjnldsv/read-package-engines-version-actions
  2. Extend the node-setup action itself

Or am I missing something?

@susnux
Copy link
Contributor Author

susnux commented Oct 21, 2025

Extend the node-setup action itself

For node I already created a PR month ago, but it will not fix the npm installation - that action is only about Node.js not about the package manager.

Extend https://github.com/skjnldsv/read-package-engines-version-actions

Sure, but I would rather move it into our org.

@susnux susnux requested a review from nickvergessen October 21, 2025 12:28
This uses the `engines`, `devEngines` or `packageManager` fields of the
`package.json` to properly setup the environment.
Its required as `setup-node` does not yet know about `devEngines` and
also does not setup the package manager - and never will.

Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux force-pushed the fix/read-package-engines branch from a016a0a to 8193d15 Compare October 21, 2025 15:26
@susnux susnux merged commit 4cc6a68 into main Oct 21, 2025
7 checks passed
@susnux susnux deleted the fix/read-package-engines branch October 21, 2025 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review type: bug 🐛 Something isn't working type: CI 🤖 CI related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants