We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
version
1 parent 0d8d8e0 commit 42d7977Copy full SHA for 42d7977
README.md
@@ -60,7 +60,9 @@ Location of `pnpm` and `pnpx` command.
60
61
## Usage example
62
63
-### Just install pnpm
+### Install only pnpm without `packageManager`
64
+
65
+This works when the repo either doesn't have a `package.json` or has a `package.json` but it doesn't specify `packageManager`.
66
67
```yaml
68
on:
@@ -77,6 +79,23 @@ jobs:
77
79
version: 8
78
80
```
81
82
+### Install only pnpm with `packageManager`
83
84
+Omit `version` input to use the version in the [`packageManager` field in the `package.json`](https://nodejs.org/api/corepack.html).
85
86
+```yaml
87
+on:
88
+ - push
89
+ - pull_request
90
91
+jobs:
92
+ install:
93
+ runs-on: ubuntu-latest
94
95
+ steps:
96
+ - uses: pnpm/action-setup@v4
97
+```
98
99
### Install pnpm and a few npm packages
100
101
0 commit comments