anantacloud-actions/Setup Node.js Pro Environment

Setup a Node.js environment with smart defaults, auto-detection, caching, and cross-platform support.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
node-versionVersion spec of Node.js (e.g., '18', '20.x', '>=18.0.0'). If not specified, will attempt to read from node-version-file. no
node-version-fileFile containing Node.js version (e.g., .nvmrc, .node-version, package.json, .tool-versions). Used when node-version is not specified. no
architectureTarget architecture. Defaults to system architecture.nox64
check-latestCheck for latest version matching the version specnofalse
registry-urlRegistry URL for npm/yarn/pnpm authenticationno
scopeScope for registry authentication (e.g., @my-org)no
tokenToken for downloading Node.js or registry authentication. Defaults to github.token.no
cachePackage manager to cache (npm | yarn | pnpm). Omit to auto-detect.no
cache-dependency-pathPath(s) to dependency files for caching (supports wildcards)no
mirrorAlternative mirror URL for Node.js binariesno
mirror-tokenAuthorization token for mirror downloadsno
installInstall dependencies automaticallynotrue
debugEnable debug logsnofalse
namedescription
node-versionResolved and installed Node.js version
cache-hitWhether the dependency cache was hit (true/false)
npm-versionResolved npm version
yarn-versionResolved yarn version (if applicable)
pnpm-versionResolved pnpm version (if applicable)