Create a new branch from development:
git checkout -b release/[new version here]
git checkout -b release/1.0.0
tip: run cat package.json| grep version
to check the current version before creating the release branch.
Then bump the version [ major | minor | patch | premajor | preminor | prepatch | prerelease [--preid=<prerelease-id> ]
npm version major
Merge the release branch into development and main:
git checkout development
git merge release/0.1.0
git push origin development
git checkout main
git merge release/0.1.0
git push origin main
Push tag to remote
git push origin [tagname]
git push origin v1.0.0
Delete release branch
git branch -d release/1.0.0
@sfjohnson I added the steps to push to developement and main after the merge. Thanks for the tip