Skip to content

Commit

Permalink
chore(docs): add --force-publish to docs for versioning strategies (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fahslaj committed May 5, 2023
1 parent ed770f5 commit 722d42c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/docs/features/version-and-publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ Fixed mode Lerna projects operate on a single version line. The version is kept
Use this if you want to automatically tie all package versions together. One issue with this approach is that a major change in any package will result in all packages having a new major version.

#### Synchronized Versions

Lerna will only version and publish packages that have changed since the previous release, causing package versions to drift apart over time. To prevent this, use the `--force-publish` option with `lerna version` and `lerna publish`. This will force Lerna to always version and publish all packages, regardless of if they have changed since the previous release. As a result, all package versions will stay synchronized to the version in `lerna.json`.

### Independent mode

`npx lerna init --independent`
Expand Down

0 comments on commit 722d42c

Please sign in to comment.