From 388560221bec4c10989b6f16385207b52ee55688 Mon Sep 17 00:00:00 2001 From: _XiaoTian Date: Thu, 19 May 2022 20:17:01 +0800 Subject: [PATCH 1/4] Update advanced-usage.md --- 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 e49ea6e2a..cc94131a3 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. +Ensure that `yarn.lock` is always committed, pass `--frozen-lockfile` or `--immutable-cache` to `yarn install` 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 --immutable-cache - run: yarn test ``` From 6c0bbfaf7d07589125bd8dd016229edc01df787c Mon Sep 17 00:00:00 2001 From: _XiaoTian Date: Thu, 19 May 2022 20:41:04 +0800 Subject: [PATCH 2/4] Update advanced-usage.md --- 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 cc94131a3..c5284d019 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -19,7 +19,7 @@ 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` or `--immutable-cache` to `yarn install` when installing packages. +Ensure that `yarn.lock` is always committed, pass `--frozen-lockfile` or `--immutable` to `yarn install` when installing packages. **See also:** - [Documentation of `yarn.lock`](https://classic.yarnpkg.com/en/docs/yarn-lock) @@ -102,7 +102,8 @@ steps: with: node-version: '14' cache: 'yarn' -- run: yarn install --immutable-cache +- run: yarn install --frozen-lockfile +# - run: yarn install --immutable - run: yarn test ``` From ceee48ad5fe06d0b28a5e2535d53d7e9163cc16f Mon Sep 17 00:00:00 2001 From: _XiaoTian Date: Thu, 19 May 2022 20:45:38 +0800 Subject: [PATCH 3/4] Update advanced-usage.md --- docs/advanced-usage.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index c5284d019..321218fce 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -102,8 +102,7 @@ steps: with: node-version: '14' cache: 'yarn' -- run: yarn install --frozen-lockfile -# - run: yarn install --immutable +- run: yarn install --frozen-lockfile # optional, --immutable - run: yarn test ``` From 2257b63d6dc25d570160b03023a0b3ff1ea0baef Mon Sep 17 00:00:00 2001 From: _XiaoTian Date: Thu, 19 May 2022 23:23:45 +0800 Subject: [PATCH 4/4] Update docs/advanced-usage.md Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com> --- docs/advanced-usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 321218fce..36c1ec8b3 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -19,7 +19,7 @@ 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` or `--immutable` 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)