action-setup-pnpm/README.md

23 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2024-04-21 14:03:51 +08:00
# action-setup-pnpm
2023-11-11 20:27:09 +08:00
> Use corepack, if you want to set pnpm version, setting the packageManager field in package.json like `"packageManager":"pnpm@8.10.2"`
## Usage
2024-04-21 13:20:33 +08:00
It will setup pnpm and run `pnpm install`.
2023-11-11 20:27:09 +08:00
```yml
- name: Setup pnpm and Install
2024-04-21 14:03:51 +08:00
uses: seepine/action-setup-pnpm@v1
2023-11-11 20:27:09 +08:00
```
## Input
| Output Item | Description | Required | Default |
| ------------ | ------------------------------------------------------------------------------------------------------ | -------- | ------- |
2024-04-21 13:20:33 +08:00
| run_install | If specified, run pnpm install. | false | true |
2024-06-13 17:44:40 +08:00
| install_cmd | Default install cmd is <pnpm install --frozen-lockfile --prefer-offline --shamefully-hoist> | false | <...> |
2024-04-21 13:20:33 +08:00
| 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 |
2023-11-11 20:27:09 +08:00
| cwd | Changes node's process.cwd() if the project is not located on the root. Default to process.cwd() files | false | . |