-
Check the Semantic Versioning page for info on how to version the new release: semver.org.
-
Make sure you are on main
git fetch origin main
git checkout main
git reset --hard origin/main
- Update the changelog using the git-extra's
git changelog
.
git changelog
- Commit and push the changelog update (to main, it's OK)
git add CHANGELOG.md
git commit -m "Update CHANGELOG.md"
git push origin main
- Set the version number, and release the tag (and rerelease the minor tag, and update the major branch)
export VERSION=v2.X.X
scripts/release $VERSION
- Create a GitHub release for the changes
git fetch origin
git fetch origin --tags
git reset origin $VERSION
gh release create -t $VERSION