Enforce engineStrict
#1286
Labels
feature request
New feature or request to improve the current logic
engineStrict
#1286
Description:
Add a new value
engineStrict
for thenode-version
config field, so it will pick the Node.js version number frompackage.json
fileengineStrict
field. This will require that the repository source code is checkout before usingsetup-node
action, but can be defined in the documentation, or exit with an error if thepackage.json
file is not found. Ifpackage.json
file is found but theengineStrict
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.
The text was updated successfully, but these errors were encountered: