Skip to content

Commit

Permalink
docs: update yarn command to freeze lockfile.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dgp1130 authored and alan-agius4 committed Mar 18, 2021
1 parent 4739ceb commit c0ed68d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/process/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ For the first release of a major version, follow the instructions in

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

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

Expand Down

0 comments on commit c0ed68d

Please sign in to comment.