- Create a new branch for the release: e.g.
git checkout -b release/{X.X.X}
- Write/Generate changelog in CHANGELOG.md
- Commit all changes, push to remote
- Comment
/bot create ticket
on github PR to make release ticket automatically
- Update the version in
package.json
: e.g.version: {version}-rc-0
(increase the number if it's necessary) - Run
npm run build
under the root directory - Run
npm publish --tag rc
- Test the RC version in your project(s) e.g. CodeSandbox Sample
- If everything is fine, go to Step 2. Otherwise make changes to main branch, rebase and repeat Step 1
- Commit all changes
- Update the version in
package.json
to the new real release version: Runnpm version patch/minor/major
- Run
npm run build
- Run
npm publish -access=public