mirror of
https://github.com/seepine/action-setup-pnpm.git
synced 2025-01-19 07:06:35 +08:00
23 lines
1.3 KiB
Markdown
23 lines
1.3 KiB
Markdown
# action-setup-pnpm
|
|
|
|
> Use corepack, if you want to set pnpm version, setting the packageManager field in package.json like `"packageManager":"pnpm@8.10.2"`
|
|
|
|
## Usage
|
|
|
|
It will setup pnpm and run `pnpm install`.
|
|
|
|
```yml
|
|
- name: Setup pnpm and Install
|
|
uses: seepine/action-setup-pnpm@v1
|
|
```
|
|
|
|
## Input
|
|
|
|
| Output Item | Description | Required | Default |
|
|
| ------------ | ------------------------------------------------------------------------------------------------------ | -------- | ------- |
|
|
| run_install | If specified, run pnpm install. | false | true |
|
|
| install_cmd | Default install cmd is <pnpm install --frozen-lockfile --prefer-offline --shamefully-hoist> | false | <...> |
|
|
| enable-corepack | Enable corepack, not use pnpm/action-setup action | false | true |
|
|
| verison | Only enable-corepack false, If you're not setting the packageManager field in package.json, set the version here | false | 8 |
|
|
| cwd | Changes node's process.cwd() if the project is not located on the root. Default to process.cwd() files | false | . |
|