Skip to content

Commit c6722d3

Browse files
update doc for frozen lock file (#789)
1 parent 8170e22 commit c6722d3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/advanced-usage.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,14 @@ steps:
261261
with:
262262
node-version: '14'
263263
cache: 'pnpm'
264-
- run: pnpm install --frozen-lockfile
264+
- run: pnpm install
265265
- run: pnpm test
266266
```
267267

268+
> **Note**: By default `--frozen-lockfile` option is passed starting from pnpm `6.10.x`. It will be automatically added if you run it on [CI](https://pnpm.io/cli/install#--frozen-lockfile).
269+
> If the `pnpm-lock.yaml` file changes then pass `--frozen-lockfile` option.
270+
271+
268272
**Using wildcard patterns to cache dependencies**
269273
```yaml
270274
steps:

0 commit comments

Comments
 (0)