(In all of the instructions, replace 4.x.x
with the actual new version number.)
- Update
CHANGELOG.md
- Update
main.go
with new version number, e.g.const Version = "4.x.x"
- If it's a major version bump (only do this for backwards incompatible changes), update the module name in
go.mod
(see: Semantic Import Versioning) git commit -m "Release 4.x.x"
git tag v4.x.x
git push origin head && git push origin v4.x.x
make dist
(to generate binaries)- Create release & upload binaries: https://github.com/schreifels/git-num/releases
- Update
main.go
with "master" version indicator, e.g.const Version = "master (post-4.x.x)"
git commit -m "Post-release 4.x.x"
git push origin head
make build
for your local env- Force an update to pkg.go.dev by running (ref):
GOPROXY=https://proxy.golang.org GO111MODULE=on go install github.com/schreifels/git-num/[email protected]