diff --git a/README.md b/README.md index 8bf1d960b7..f3ea6ee3b8 100644 --- a/README.md +++ b/README.md @@ -99,24 +99,18 @@ The release of the packages is automated by the CI, you just need to bump packag **The commands listed below will only prompt for packages to bump**. Then they will modify packages versions, commit changes and create the git tag to finally push everything to github. **No further actions are required once you have validated the packages to bump.** -#### If you just need to bump one version without bumping to a major or switching from a prerelease to stable release, run: +#### If you just need to bump one version without switching from a prerelease to stable release, run: ```bash yarn release ``` -#### To bump to a major version, run: - -```bash -yarn release major -``` - #### To create a new prerelease, run: This is only used for the **first** prerelease. If you already published a v5.0.0-alpha.0 then you just need to run the first command. ```bash -yarn release --preid alpha +yarn prerelease ``` NB: you can replace alpha with any other keyword (beta, rc, ...) diff --git a/package.json b/package.json index 1958f71726..df737e58a0 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "postinstall": "husky install", "pre-build": "yarn icons:collect", "release": "yarn lerna version --conventional-commits --no-private", + "prerelease": "yarn lerna version --no-private --preid alpha", "start": "yarn docs:dev", "test": "yarn jest", "watch": "onchange 'packages/**/*.ts*' -e '**/dist/**' -- node -r esm scripts/watch.js {{changed}}",