From c6722d36aaa79698146c81f0e92e8ede863c461b Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Thu, 22 Jun 2023 15:55:14 +0200 Subject: [PATCH] update doc for frozen lock file (#789) --- docs/advanced-usage.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 43dd22a6..fb40e844 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -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: