Skip to content

Commit

Permalink
docs(version): Correct global --conventional-prerelease example
Browse files Browse the repository at this point in the history
Closes #2252
  • Loading branch information
evocateur committed Oct 7, 2019
1 parent 85afdba commit afb0414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/version/README.md
Expand Up @@ -144,8 +144,8 @@ When run with this flag, `lerna version` will graduate the specified packages (c
```sh
lerna version --conventional-commits --conventional-prerelease=package-2,package-4

# force all prerelease packages to be graduated
lerna version --conventional-commits --conventional-graduate
# force all changed packages to be prereleased
lerna version --conventional-commits --conventional-prerelease
```

When run with this flag, `lerna version` will release with prerelease versions the specified packages (comma-separated) or all packages using `*`. Releases all unreleased changes as pre(patch/minor/major/release) by prefixing the version recommendation from `conventional-commits` with `pre`, eg. if present changes include a feature commit, the recommended bump will be `minor`, so this flag will result in a `preminor` release. If changes are present for packages that are not specified (if specifying packages), or for packages that are already in prerelease, those packages will be versioned as they normally would using `--conventional-commits`.
Expand Down

0 comments on commit afb0414

Please sign in to comment.