Add node-version-file support for use-node-version in .npmrc files
Description:
Add node-version-file support for determining the Node version from the use-node-version key of a .npmrc file. See the PNPM docs.
Here's an example .npmrc file:
use-node-version=23.10.0
Related issue: Resolves https://github.com/actions/setup-node/issues/1130
Check list:
- [x] Mark if documentation changes are required.
- [x] Mark if tests were added or updated to cover the changes.
Hi @aparnajyothi-y , when you get a chance, please take a look! I forked this from https://github.com/actions/setup-node/pull/1149.
Hi @aparnajyothi-y or @priya-kinthali, apologies for the follow ups, could I trouble you to peek at this PR?
not sure if this is best suited for a separate PR, but pnpm also supports this setting via pnpm-workspace.yaml using camelCase key useNodeVersion
https://pnpm.io/settings#usenodeversion
Hi @aparnajyothi-y or @priya-kinthali, apologies for the follow ups, could I trouble you to peek at this PR or suggest a reviewer?
Hey @HarithaVattikuti, any chance I can nag you to take a look at this PR?
@aparnajyothi-y can I nag you to give this PR a look?