From 6d03be833f2150b674e12e649f4ea7ab6ef3bb9d Mon Sep 17 00:00:00 2001 From: Taly Date: Fri, 26 Feb 2021 18:55:10 +0300 Subject: [PATCH 1/2] Update releases.md If the next update is planned to raise the minor version (`2.19.1` -> `2.20.0`), then change it before version update merge. --- docs/releases.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/releases.md b/docs/releases.md index c5cafdb40..5b7e49197 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -58,8 +58,27 @@ After each PR merge to the `next` branch [bump-version-on-merge-next.yml](.githu workflow will check if a package version was updated. If there is no update then it will open a new PR with a next prerelease version. +### How it works + +Bump version command to be run in workflow. + +`yarn version --prerelease --preid rc --no-git-tag-version` + +Prerelease version will be bumped or a new prerelease patch will be created: + +- `2.19.1` -> `2.19.2-rc.0` +- `2.19.2-rc.0` -> `2.19.2-rc.1` + +### Change version + You can edit version (and PR name of course) if you need to publish not a pre-release version or any other. +If the next update is planned to raise the minor version (`2.19.1` -> `2.20.0`), then change it before version update merge. + +- `2.19.1` will be bumped to `2.19.2-rc.0` be default, change `2.19.2-rc.0` to `2.20.0-rc.0` + +### Ignore update + If you do not need to upgrade and publish the update with the merged pull request (docs update or any other non-important changes), you can close the pull request generated by the workflow. From eabbe343c72b530746289960fa95689e2b2bd9d8 Mon Sep 17 00:00:00 2001 From: Taly Date: Fri, 26 Feb 2021 19:43:53 +0300 Subject: [PATCH 2/2] Update docs/releases.md Co-authored-by: Peter Savchenko --- docs/releases.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/releases.md b/docs/releases.md index 5b7e49197..675aaac60 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -60,7 +60,7 @@ prerelease version. ### How it works -Bump version command to be run in workflow. +The command for bumping a version will be running in a workflow. `yarn version --prerelease --preid rc --no-git-tag-version`