-
Couldn't load subscription status.
- Fork 1.5k
Description
Description:
Add a new value engineStrict for the node-version config field, so it will pick the Node.js version number from package.json file engineStrict field. This will require that the repository source code is checkout before using setup-node action, but can be defined in the documentation, or exit with an error if the package.json file is not found. If package.json file is found but the engineStrict field is not available, then we can use the default Node.js version, showing a warning instead.
Justification:
To have a single place to config the Node.js version value instead of two (package.json and GitHub Action yaml file).
Are you willing to submit a PR?
Yes, I can do it, if there's interest on merging it.