-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read version from use-node-version key of .npmrc #1149
base: main
Are you sure you want to change the base?
Conversation
@aparnajyothi-y for visibility |
@aparnajyothi-y , gentle bump on this :) |
We would love to be able to drop |
@aparnajyothi-y, bumping this again :) I'd love to get this in if my changes look good to you |
[Copilot is generating a summary...] Marge comment |
@aparnajyothi-y, seems like you're quite busy. Is there someone else I should be seeking a review from? |
I'd love to see this too! @aparnajyothi-y or @priya-kinthali, any chance we can nudge you to review this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -56,6 +57,25 @@ export function getNodeVersionFromFile(versionFilePath: string): string | null { | |||
core.info('Node version file is not JSON file'); | |||
} | |||
|
|||
// Try parsing the file as an NPM `.npmrc` file. | |||
// | |||
// If the file contents contain the use-node-version key, we conclude it's an |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description:
Add support for determining the Node version from the
use-node-version
key of.npmrc
as described in the PNPM docs.Related issue:
Resolves #1130
Check list: