Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add examples of manual versioning of multiple packages #588

Merged
merged 4 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docs/commands/version.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,10 @@ Each value must be in the format
```bash
melos version --manual-version=foo:patch
melos version --manual-version=foo:1.0.0
melos version -Vfoo:1.0.0
melos version -V foo:1.0.0

# To manually version multiple packages
melos version --manual-version=foo:patch --manual-version=bar:major
melos version --manual-version=foo:1.0.0 --manual-version=bar:1.0.0
melos version -V foo:1.0.0 -V bar:2.0.0
```
10 changes: 6 additions & 4 deletions docs/guides/automated-releases.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,15 @@ To manually version multiple packages use the `--manual-version` (short `-V`)
option:

```sh
melos version --manual-version <package-name>:<version-change>
melos version --manual-version <package-1-name>:<version-change> --manual-version <package-2-name>:<version-change>
# Same but with short version
melos version -V <package-1-name>:<version-change> -V <package-2-name>:<version-change>
```

Note that when using the `--manual-version` option, the automatic versioning
process is executed normally, execpt for the packages that are manually
versioned. This allows you to mix automatic and manual versioning. The
[`--ignore`](/filters#--ignore) filter can be used to exclude all package from
process is executed normally, except for the packages that are manually
versioned. It allows to mix automatic and manual versioning. The
[`--ignore`](/filters#--ignore) filter can be used to exclude all packages from
automatic versioning, by passing `--ignore '*'`.

### Dependents Versioning
Expand Down
Loading