Installation
Prerequisites
Section titled “Prerequisites”- Git ≥ 2.30
- A repository that uses Conventional Commits
Install
Section titled “Install”go install github.com/GoSemantics/semrel/cmd/semrel@latestRequires Go ≥ 1.22. The binary is placed in $GOPATH/bin (usually ~/go/bin).
Download the pre-built binary for your platform from GitHub Releases and place it somewhere on your $PATH:
# Linux / macOS (example for v0.1.0, amd64)curl -L https://github.com/GoSemantics/semrel/releases/download/v0.1.0/semrel_linux_amd64 \ -o /usr/local/bin/semrelchmod +x /usr/local/bin/semrelgit clone https://github.com/GoSemantics/semrel.gitcd semrelgo build -o semrel ./cmd/go-semrelmv semrel /usr/local/bin/Verify
Section titled “Verify”semrel --versionExpected output:
semrel version v0.1.0CI / CD
Section titled “CI / CD”For GitHub Actions, add a setup step before calling semrel release:
- name: Set up Go uses: actions/setup-go@v5 with: go-version: '1.22'
- name: Install semrel run: go install github.com/GoSemantics/semrel/cmd/semrel@latestShell completion
Section titled “Shell completion”Auto-completion scripts can be generated for bash, zsh, fish, and PowerShell:
# bashsemrel completion bash > /etc/bash_completion.d/semrel
# zshsemrel completion zsh > "${fpath[1]}/_semrel"
# fishsemrel completion fish | source