pwrdrvr/Configure Node.js

Install Node.js, resolve the package manager, restore dependency cache, and install dependencies when needed

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit May 16, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: pwrdrvr/configure-nodejs@7c109865ae9af59c6fcd2f2a0e8cc851f6ded26a # v1.1.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
node-versionNode.js version to install22.x
package-managerOptional override for npm, yarn, or pnpm; defaults to the package manager inferred from package.json and lockfiles""
working-directoryRepository-relative directory containing package.json and lockfile.
cache-key-suffixOptional suffix appended to the dependency cache key for namespacing""
lookup-onlyIf true, only checks if the dependency cache exists and skips download. Does not change save cache behaviorfalse
namedescription
package-managerResolved package manager
package-manager-versionResolved package manager version from package.json when available
manager-cache-keyPackage-manager-specific cache key segment
lockfile-nameDetected lockfile name
lockfile-pathDetected lockfile path relative to the working directory
lockfile-shaSHA256 hash of the detected lockfile
install-commandInstall command used when dependency installation runs
working-directoryNormalized repository-relative working directory
working-directory-keyCache-key-safe identifier for the normalized working directory
cache-hitWhether actions/cache restored a dependency cache entry