From ea3459bb459f783f186dcfc5229793d2c6f40b25 Mon Sep 17 00:00:00 2001
From: _XiaoTian <istianlei@qq.com>
Date: Fri, 20 May 2022 01:32:26 +0800
Subject: [PATCH] docs: Update advanced-usage.md (#495)

* Update advanced-usage.md

* Update advanced-usage.md

* Update advanced-usage.md

* Update docs/advanced-usage.md

Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>

Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
---
 docs/advanced-usage.md | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md
index e49ea6e..36c1ec8 100644
--- a/docs/advanced-usage.md
+++ b/docs/advanced-usage.md
@@ -19,12 +19,13 @@ Ensure that `package-lock.json` is always committed, use `npm ci` instead of `np
 
 ### Yarn
 
-Ensure that `yarn.lock` is always committed, pass `--frozen-lockfile` to `yarn install` when installing packages.
+To ensure that `yarn.lock` is always committed, use `yarn install --immutable` when installing packages.
 
 **See also:**
 - [Documentation of `yarn.lock`](https://classic.yarnpkg.com/en/docs/yarn-lock)
 - [Documentation of `--frozen-lockfile` option](https://classic.yarnpkg.com/en/docs/cli/install#toc-yarn-install-frozen-lockfile)
 - [QA - Should lockfiles be committed to the repoistory?](https://yarnpkg.com/getting-started/qa/#should-lockfiles-be-committed-to-the-repository)
+- [Documentation of `yarn install`](https://yarnpkg.com/cli/install)
 
 ### PNPM
 
@@ -101,7 +102,7 @@ steps:
   with:
     node-version: '14'
     cache: 'yarn'
-- run: yarn install --frozen-lockfile
+- run: yarn install --frozen-lockfile # optional, --immutable
 - run: yarn test
 ```