Skip to content

Commit c0ed68d

Browse files
dgp1130alan-agius4
authored andcommitted
docs: update yarn command to freeze lockfile.
In today's release, running `yarn` modified the `yarn.lock` file, which is not desireable for releases which should be as close to CI as possible. This updates the docs to freeze the lockfile (similar to `npm ci`) to avoid changing dependency verisons mid-release.
1 parent 4739ceb commit c0ed68d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/process/release.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ For the first release of a major version, follow the instructions in
118118

119119
For non-major release, check out the patch branch (e.g. `9.1.x`), then run:
120120
```bash
121-
rm -rf node_modules/ && yarn # Reload dependencies
121+
rm -rf node_modules/ && yarn install --frozen-lockfile # Reload dependencies
122122
yarn admin publish --tag latest
123123
```
124124

125125
If also publishing a prerelease, check out `master`, then run:
126126
```bash
127-
rm -rf node_modules/ && yarn # Reload dependencies
127+
rm -rf node_modules/ && yarn install --frozen-lockfile # Reload dependencies
128128
yarn admin publish --tag next
129129
```
130130

0 commit comments

Comments
 (0)