The preferred method of installation is via the releases generated by the CI workflow of the official GitHub repository:
$ curl -SL https://github.com/s0ders/go-semver-release/releases/latest/download/go-semver-release-linux-amd64 -o ./go-semver-release && chmod +x ./go-semver-release
Releases are available for various OS and architectures and come with generated provenance of SLSA level 3 to avoid being tampered with, ensuring a strong layer of protection against supply chain attacks.
If Go is installed on your machine, you can install from source:
$ go install github.com/s0ders/go-semver-release/v6@latest
$ go-semver-release --help
A Docker image is available as well:
$ docker pull s0ders/go-semver-release:latest
$ docker run --rm s0ders/go-semver-release --help