Action to detect the package manager used. Supports Yarn, pnpm, and npm
- uses: hoverkraft-tech/ci-github-nodejs/actions/get-package-manager@c9d9d041ba4ef35695ee469c4782fa6a8bbebbcc # 0.21.2
with:
# Working directory where the dependencies are installed.
# Can be absolute or relative to the repository root.
#
# Default: `.`
working-directory: .| Input | Description | Required | Default |
|---|---|---|---|
working-directory |
Working directory where the dependencies are installed. | false | . |
| Can be absolute or relative to the repository root. |
| Output | Description |
|---|---|
package-manager |
The package manager used. |
cache-dependency-path |
The path to the dependency file for cache management. |
install-command |
The command to install dependencies. |
run-script-command |
The command to run a script in the package.json file. |
Contributions are welcome! Please see the contributing guidelines for more details.
This project is licensed under the MIT License.
SPDX-License-Identifier: MIT
Copyright © 2026 hoverkraft
For more details, see the license.
This documentation was automatically generated by CI Dokumentor.