Skip to content
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

feat: add node-version-file option #48

Closed

Conversation

nozomuikuta
Copy link

Resolves #47
This PR includes trailing spaces removal on save.

⚠️ This is my very first PR to this repository, so I might be missing something important.

Comment on lines +11 to +14
node-version-file:
description: "You may specify file path where node version is defined (e.g. package.json, .nvmrc, .node-version, .tool-versions.)"
required: false
default: ""
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description is based on that of actions/setup-node@v4 and package-manager option.

@natemoo-re
Copy link
Member

I see where this is coming from, but we shouldn't expose every option from sub-actions. That would become very unruly, and the goal here is to have a small number of inputs to provide quick onboarding for the majority of simple use cases.

If you have a more complex setup that this action supports, we recommend writing your own custom GitHub Action.

@natemoo-re natemoo-re closed this Jun 5, 2024
@devmattrick
Copy link

@natemoo-re I understand your concern about not wanting to expose every possible option, but imo it's a pretty common pattern to have a file define the Node version that a project uses. A lot of Node tooling is built around this sort of thing. I may be being reductive here, but I feel like supporting this option wouldn't necessarily open up a can of worms that would drastically increase complexity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support node-version-file options of actions/setup-node@v4
3 participants