Skip to content
package

GitHub Action

Get Package Manager

v1.0.0 Latest version

Get Package Manager

package

Get Package Manager

Get which package manager you're using (yarn or pnpm or npm)

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Get Package Manager

uses: wow-actions/get-package-manager@v1.0.0

Learn more about this action in wow-actions/get-package-manager

Choose a version

get-package-manager

Get which package manager you're using (yarn or pnpm or npm)

Usage

Create .github/workflows/get-package-manager.yml in the default branch:

steps:
  - uses: actions/checkout@v3
  - uses: wow-actions/get-package-manager@v1
    id: getpm
  - run: |
    echo "Package manager in use: ${{ steps.getpm.outputs.pm }}"

License

The scripts and documentation in this project are released under the MIT License.