File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ Location of `pnpm` and `pnpx` command.
60
60
61
61
## Usage example
62
62
63
- ### Just install pnpm
63
+ ### 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 ` .
64
66
65
67
``` yaml
66
68
on :
77
79
version : 8
78
80
` ` `
79
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
+
80
99
# ## Install pnpm and a few npm packages
81
100
82
101
` ` ` yaml
You can’t perform that action at this time.
0 commit comments