pwrdrvr/Configure Node.js
Install Node.js, resolve the package manager, restore dependency cache, and install dependencies when needed
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit May 16, 2026
- License
- MIT
Pinned Snippet
uses: pwrdrvr/configure-nodejs@7c109865ae9af59c6fcd2f2a0e8cc851f6ded26a # v1.1.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| node-version | Node.js version to install | — | 22.x |
| package-manager | Optional override for npm, yarn, or pnpm; defaults to the package manager inferred from package.json and lockfiles | — | "" |
| working-directory | Repository-relative directory containing package.json and lockfile | — | . |
| cache-key-suffix | Optional suffix appended to the dependency cache key for namespacing | — | "" |
| lookup-only | If true, only checks if the dependency cache exists and skips download. Does not change save cache behavior | — | false |
Outputs
| name | description |
|---|---|
| package-manager | Resolved package manager |
| package-manager-version | Resolved package manager version from package.json when available |
| manager-cache-key | Package-manager-specific cache key segment |
| lockfile-name | Detected lockfile name |
| lockfile-path | Detected lockfile path relative to the working directory |
| lockfile-sha | SHA256 hash of the detected lockfile |
| install-command | Install command used when dependency installation runs |
| working-directory | Normalized repository-relative working directory |
| working-directory-key | Cache-key-safe identifier for the normalized working directory |
| cache-hit | Whether actions/cache restored a dependency cache entry |