This document explains how to publish the package at version x.y.z. Ensure that you’re following semver when choosing a version number.
Update to latest locally (develop or master depending if you want to release to @latest or prerelease) to ensure you’re on the latest commit. Make sure you have no unstaged changes.
Create a new branch called x.y.z-proposal from the current commit.
Decide on the next major.minor.patch
release number based on semver guidelines. Change CHANGELOG.md file.
Run:
npm version major|minor|patch -m \"ci(release): %s\"
Next,
git push --tags
Next,
git push
Next, merge the branch to master or main, then merge back to develop
Run:
npm --preid=next version prerelease -m \"ci(prerelease): %s for develop\"
or you can use
npm run dev:release:patch
Next,
git push --tags
Next,
git push
Next, merge the branch to develop