Git & Version Controlintermediate
Create and manage semantic version tags with release notes
Release Tagger
Create and manage semantic version tags with release notes
Create and manage semantic version tags with release notes.
Instructions
- Check current version:
git tag --sort=-version:refname | head -5 # latest tags
-
Determine new version (semver):
- MAJOR (1.0.0 → 2.0.0): breaking changes
- MINOR (1.0.0 → 1.1.0): new features, backward compatible
- PATCH (1.0.0 → 1.0.1): bug fixes only
-
Check what changed since last release:
git log $(git describe --tags --abbrev=0)..HEAD --oneline
- Create annotated tag:
git tag -a v1.2.0 -m "Release v1.2.0
Features:
- Add OAuth2 Google login (#45)
- Add cursor-based pagination (#52)
Bug Fixes:
- Fix token refresh race condition (#48)
Breaking Changes:
- None"
- Push the tag:
git push origin v1.2.0
- If using GitHub, create a release:
gh release create v1.2.0 --title "v1.2.0" --notes-file CHANGELOG.md