Skip to content

Commit

Permalink
docs: more detailed explanations
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub authored Jul 3, 2024
1 parent 08bc1bb commit 78487e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ Location of `pnpm` and `pnpx` command.

## Usage example

### Install only pnpm
### 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`.

```yaml
on:
Expand All @@ -77,7 +79,7 @@ jobs:
version: 8
```
### Install only pnpm, use `packageManager` version
### 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).

Expand Down

0 comments on commit 78487e2

Please sign in to comment.