Compare commits

..

1 Commits

Author SHA1 Message Date
Jeong Min O
c199c90ed0
Merge e2805aa8fd into 23657c8550 2024-06-27 11:24:05 +09:00

View File

@ -60,9 +60,7 @@ Location of `pnpm` and `pnpx` command.
## Usage example
### Install only pnpm without `packageManager`
This works when the repo either doesn't have a `package.json` or has a `package.json` but it doesn't specify `packageManager`.
### Just install pnpm
```yaml
on:
@ -79,23 +77,6 @@ jobs:
version: 8
```
### Install only pnpm with `packageManager`
Omit `version` input to use the version in the [`packageManager` field in the `package.json`](https://nodejs.org/api/corepack.html).
```yaml
on:
- push
- pull_request
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v4
```
### Install pnpm and a few npm packages
```yaml