-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Node version file support #209
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
Node version file support #209
Conversation
d199fd6
to
c3812bd
Compare
Hey @TJMcCarthy95, thanks for this PR! I intended to take up this PR but got sidetracked with work. Few things I wanted to point out. First one is that
and probably more. You can find this via There's also the problem of I don't suppose we need to take into account every If you're interested, I do have a branch based off of this PR with the changes required to parse the above syntaxes. You can check it out here. |
I appreciate you taking the time to review the PR. My intentions of implementing this weren't necessarily to support the complete feature set of |
e9123de
to
a0d376d
Compare
@sangeeth96 Sorry for the delay on these updates got caught up with work. I've implemented the updates using your branch as reference so when you get a chance, would be great if you could give it another review, cheers. |
Just commenting since it's highly related: https://github.com/nodenv/actions-node-version is an action that reads .node-version file (leveraging nodenv) and exposes it as an output that can be used as an input to the setup-node action. This would be a workaround until/unless setup-node gains the ability to do it automatically. |
Is this branch deleted @alepauly ? |
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.25.0 to 4.26.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.26.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Overview
Implemented the ability to define a file within a project as the holder of the projects node version such as an
.nvmrc
file so to mitigate duplicating node version declarations. After recently researching the ability to do this I came across this "issue" (albeit not an issue) and then came across this comment which is the implementation I had envisaged.The implementation follows a similar flow as defined in the comment whereby the
node-version
input takes precedence and if not provided and thenode-version-file
input is, then read the provided node version file.Commits