update doc for frozen lock file

This commit is contained in:
Dmitry Shibanov 2023-06-21 13:42:17 +02:00
parent 698d50532e
commit 4e840b8330

View file

@ -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: