mirror of
https://github.com/pnpm/action-setup
synced 2026-09-07 04:21:02 +02:00
Route pnpm 12-only versions and ranges through the plain pnpm native package while preserving the existing Node and @pnpm/exe bootstrap paths for older releases.
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
name: Setup pnpm
|
|
description: Install pnpm package manager
|
|
branding:
|
|
icon: package
|
|
color: orange
|
|
inputs:
|
|
version:
|
|
description: Version of pnpm to install
|
|
required: false
|
|
dest:
|
|
description: Where to store pnpm files
|
|
required: false
|
|
default: ~/setup-pnpm
|
|
run_install:
|
|
description: If specified, run `pnpm install`
|
|
required: false
|
|
default: 'null'
|
|
cache:
|
|
description: Whether to cache the pnpm store directory
|
|
required: false
|
|
default: 'false'
|
|
cache_dependency_path:
|
|
description: File path to the pnpm lockfile, whose contents hash will be used as a cache key. Accepts multiple paths delimited by newlines.
|
|
required: false
|
|
default: 'pnpm-lock.yaml'
|
|
package_json_file:
|
|
description: File path to the package.json to read "packageManager" configuration. This path must be relative to the repository root (GITHUB_WORKSPACE).
|
|
required: false
|
|
default: 'package.json'
|
|
standalone:
|
|
description: When set to true for pnpm v11 and earlier, install @pnpm/exe to use pnpm without Node.js. pnpm v12 uses the plain pnpm package's native executable.
|
|
required: false
|
|
default: 'false'
|
|
outputs:
|
|
dest:
|
|
description: Expanded path of inputs#dest
|
|
bin_dest:
|
|
description: Location of `pnpm` and `pnpx` command
|
|
runs:
|
|
using: node24
|
|
main: dist/index.js
|
|
post: dist/index.js
|