svierk/Get Node Version

Pulls the Node.js version to be used from the package.json file of a project, with an optional input to override it.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
node-versionExplicit Node.js version spec that takes precedence over the package.json lookup. An empty value (e.g. an unset repository variable) falls back to package.json.no""
pathSpecify the path where the package.json file can be found.no./
package-managerSpecify the package manager to be used. Supported values: npm, yarn, pnpmnonpm
step-summaryWrite a result section to the GitHub Actions job summary. Set to false to avoid collisions with a custom workflow summary.notrue
namedescription
node-versionThe Node.js version spec resolved from the node-version input or the package.json engines field.
sourceWhere the version spec was resolved from: "node-version input" or "package.json".