setup-node icon indicating copy to clipboard operation
setup-node copied to clipboard

Read version from use-node-version key of .npmrc

Open mcevoypeter opened this issue 1 year ago • 12 comments

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:

  • [ ] Mark if documentation changes are required.
  • [x] Mark if tests were added or updated to cover the changes.

mcevoypeter avatar Oct 20 '24 17:10 mcevoypeter

@aparnajyothi-y for visibility

mcevoypeter avatar Oct 20 '24 20:10 mcevoypeter

@aparnajyothi-y , gentle bump on this :)

mcevoypeter avatar Oct 31 '24 12:10 mcevoypeter

We would love to be able to drop nvm entirely and this would be a huge help!

johnlindquist avatar Nov 07 '24 16:11 johnlindquist

@aparnajyothi-y, bumping this again :) I'd love to get this in if my changes look good to you

mcevoypeter avatar Dec 10 '24 19:12 mcevoypeter

@aparnajyothi-y, seems like you're quite busy. Is there someone else I should be seeking a review from?

mcevoypeter avatar Jan 08 '25 14:01 mcevoypeter

I'd love to see this too! @aparnajyothi-y or @priya-kinthali, any chance we can nudge you to review this PR?

kyle-leonhard avatar Feb 05 '25 04:02 kyle-leonhard

@aparnajyothi-y or @priya-kinthali, any chance we can nudge you to review this PR? If not, can you suggest another reviewer with bandwidth?

kyle-leonhard avatar Feb 15 '25 00:02 kyle-leonhard

Hi @aparnajyothi-y or @priya-kinthali, could I trouble you to review this PR? I'd greatly appreciate it!

kyle-leonhard avatar Mar 15 '25 17:03 kyle-leonhard

Hello Everyone, Thank you for this pull request. We are looking into it and get back to you once we have some feedback on this :)

aparnajyothi-y avatar Mar 17 '25 09:03 aparnajyothi-y

seems like the below comments are why maintainers are staying away from approving this pr. i can take another crack in another pr if you don't have time

@mcevoypeter - I forked your PR to confirm what @PeterCardenas commented. Change to the lock file and dist directory are much more reasonable: https://github.com/actions/setup-node/pull/1253/files#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519. All I did was restore the lockfile, add @types/init and rebuild. Feel free to cherry pick the last commit.

kyle-leonhard avatar Mar 17 '25 22:03 kyle-leonhard

Hello Everyone, Thank you for this pull request. We are looking into it and get back to you once we have some feedback on this :)

hi @aparnajyothi-y, I had a little time today so I went ahead and fixed up a few of the issue with this PR and created: https://github.com/actions/setup-node/pull/1253. Please take a look when you have a chance!

kyle-leonhard avatar Mar 19 '25 17:03 kyle-leonhard