Skip to the content.

Icon GitHub Action: Get package manager

Get package manager

Marketplace Release License Stars PRs Welcome

Overview

Action to detect the package manager used. Supports Yarn, pnpm, and npm

Usage

- uses: hoverkraft-tech/ci-github-nodejs/actions/get-package-manager@4d7c1ed87c18493fc4c2dbae4dbde46cf251c9a7 # 0.16.1
  with:
    # Working directory where the dependencies are installed.
    # Can be absolute or relative to the repository root.
    #
    # Default: `.`
    working-directory: .

Inputs

Input Description Required Default
working-directory Working directory where the dependencies are installed. false .
  Can be absolute or relative to the repository root.    

Outputs

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.

Contributing

Contributions are welcome! Please see the contributing guidelines for more details.

License

This project is licensed under the MIT License.

SPDX-License-Identifier: MIT

Copyright © 2025 Hoverkraft

For more details, see the license.


This documentation was automatically generated by CI Dokumentor.