yarn version apply
Note that if --prerelease is set, the given prerelease identifier (by default rc.%n) will be used on all new versions and the version definitions will be kept as-is.
By default only the current workspace will be bumped, but you can configure this behavior by using one of:
--recursiveto also apply the version bump on its dependencies ---allto apply the version bump on all packages in the repository
Note that this command will also update the workspace: references across all your local workspaces, thus ensuring that they keep referring to the same workspaces even after the version bump.
Options
| Option | Description |
|---|---|
--all | Apply the deferred version changes on all workspaces |
--dry-run | Print the versions without actually generating the package archive |
--prerelease | Add a prerelease identifier to new versions |
--recursive | Release the transitive workspaces as well |
--json | Format the output as an NDJSON stream |