Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.11 KB

File metadata and controls

34 lines (26 loc) · 1.11 KB

Setup PNPM action

This action sets up pnpm for use in actions. The version of pnpm to install is read from the packageManager field in the package.json file. See the corepack documentation for more information.

Action inputs

Input Description Default
node_version_file The path to the file containing the Node.js version to use. '.node-version'
node_version The specific Node.js version to use. ''

Example usage

name: Setup PNPM

on:
  push:
    branches:
      - main
    pull_request:

jobs:
  setup_pnpm:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

      - name: Setup PNPM
        uses: dfinity/ci-tools/actions/setup-pnpm@main
        with:
          node_version_file: '.nvmrc'