# ivuorinen/actions/node-setup ## Node Setup ### Description Sets up Node.js environment with version detection and package manager configuration. ### Inputs | name | description | required | default | |-------------------|--------------------------------------------------------------------------|----------|------------------------------| | `default-version` |

Default Node.js version to use if no configuration file is found.

| `false` | `22` | | `package-manager` |

Node.js package manager to use (npm, yarn, pnpm, bun, auto)

| `false` | `auto` | | `registry-url` |

Custom NPM registry URL

| `false` | `https://registry.npmjs.org` | | `token` |

Auth token for private registry

| `false` | `""` | | `node-mirror` |

Custom Node.js binary mirror

| `false` | `""` | | `force-version` |

Force specific Node.js version regardless of config files

| `false` | `""` | ### Outputs | name | description | |-------------------|-------------------------------------| | `node-version` |

Installed Node.js version

| | `package-manager` |

Selected package manager

| | `node-path` |

Path to Node.js installation

| ### Runs This action is a `composite` action. ### Usage ```yaml - uses: ivuorinen/actions/node-setup@main with: default-version: # Default Node.js version to use if no configuration file is found. # # Required: false # Default: 22 package-manager: # Node.js package manager to use (npm, yarn, pnpm, bun, auto) # # Required: false # Default: auto registry-url: # Custom NPM registry URL # # Required: false # Default: https://registry.npmjs.org token: # Auth token for private registry # # Required: false # Default: "" node-mirror: # Custom Node.js binary mirror # # Required: false # Default: "" force-version: # Force specific Node.js version regardless of config files # # Required: false # Default: "" ```