# Starting version: 1.0.0 yarn version --patch package.json version becomes 1.0.1 Git tag: v1.0.1 Bump minor version yarn version --minor package.json version becomes 1.1.0 Bump major version yarn version --major package.json version becomes 2.0.0 Set explicit version yarn version --new-version 3.0.0-beta.1
| Command / Option | Description | | :--- | :--- | | yarn version | Interactive prompt to select the new version (patch, minor, major, or custom). | | yarn version --new-version <version> | Bump to a specific version (e.g., yarn version --new-version 2.0.0 ). | | yarn version --major | Bump the major version (e.g., 1.2.3 → 2.0.0). | | yarn version --minor | Bump the minor version (e.g., 1.2.3 → 1.3.0). | | yarn version --patch | Bump the patch version (e.g., 1.2.3 → 1.2.4). | | --no-git-tag-version | Skip creating the Git tag and commit (only updates package.json ). | | --message "<message>" | Customize the Git commit message (e.g., --message "chore: release v%s" ). The %s is replaced with the new version. | yarn version
Use yarn version for simple, automated version bumping in CI or release scripts. For complex monorepos or modern Yarn (v2+), prefer the workflow. Always push tags manually after verifying the release. Report generated based on Yarn Classic (v1.x) behavior. # Starting version: 1