Simple helper to release your git tag according to the semver spec.
- create git tags easily following semver guidelines
- prefix-aware, will keep your prefix without any further doings
- feels like a direct integration with git
- ability to add custom suffix to your version tag without having to do it all manually
- push the newly created tag to origin
go install github.com/timo-reymann/git-semver-tag@latest
curl -LO https://github.com/timo-reymann/git-semver-tag/releases/download/$(curl -Lso /dev/null -w %{url_effective} https://github.com/timo-reymann/git-semver-tag/releases/latest | grep -o '[^/]*$')/git-semver-tag_linux_amd64 && chmod +x git-semver-tag_linux_amd64
sudo mv git-semver-tag_linux_amd64 /usr/local/bin/git-semver-tag
brew install timo-reymann/homebrew-git-semver-tag/git-semver-tag
Note: this creates a tap timo-reymann/git-semver-tag
:
brew tap
homebrew/bundle
timo-reymann/git-semver-tag
[...]
curl -LO https://github.com/timo-reymann/git-semver-tag/releases/download/$(curl -Lso /dev/null -w %{url_effective} https://github.com/timo-reymann/git-semver-tag/releases/latest | grep -o '[^/]*$')/git-semver-tag_darwin_amd64 && chmod +x git-semver-tag_darwin_amd64
sudo mv git-semver-tag_darwin_amd64 /usr/local/bin/git-semver-tag
To get usage info enter:
git semver-tag -h
As you may have recognized now semver-tag is registered as git subcommand.
Sometimes semantic-release is just not the right thing to use and having to figure out the next semantic tag is sometimes to annoying. So here is a helper to plug in and avoid that
I love your input! I want to make contributing to this project as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the configuration
- Submitting a fix
- Proposing new features
- Becoming a maintainer
To get started please read the Contribution Guidelines.
go test ./...
go build -o git-semver-tag main.go