Skip to content

Commit

Permalink
update doc for frozen lock file (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-shibanov authored Jun 22, 2023
1 parent 8170e22 commit c6722d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/advanced-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,14 @@ steps:
with:
node-version: '14'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm install
- run: pnpm test
```

> **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).
> If the `pnpm-lock.yaml` file changes then pass `--frozen-lockfile` option.


**Using wildcard patterns to cache dependencies**
```yaml
steps:
Expand Down

0 comments on commit c6722d3

Please sign in to comment.