provider-release
Create the GitHub or GitLab releases of the current versions, with their changelog as release notes.
Usage
relizy provider-release [options]provider-release is a step of release, after the push: the tags of the releases must be on the remote. Alone, it creates the release of the current version (one per package in independent mode), with the changelog of the commits since the previous release tag as notes. A prerelease version is marked as a prerelease.
The provider is --provider, else repo.provider, else detected from the repository (github or gitlab). The command exits with code 1 when a release fails. On Bitbucket, which has no release API, the step creates nothing (the tags of the release are its only trace). The global options apply too (--dry-run, --group, --no-safety-check...).
Options
| Flag | Description | Config |
|---|---|---|
--from <ref> | Start of the commit range (tag or commit), instead of the previous release tag | from |
--to <ref> | End of the commit range | to |
--provider <provider> | github or gitlab, instead of the detected one | - |
--token <token> | Token of the git provider | tokens |
--ai, --no-ai | Force or disable the AI rewrite of the release notes | AI |
Without --token, the token comes from the config or the environment (GITHUB_TOKEN, GITLAB_TOKEN...), see Tokens. See AI-Enhanced Changelogs for the AI release notes.
Examples
# Preview the release notes
relizy provider-release --dry-run
# On GitLab, with a token
relizy provider-release --provider gitlab --token "$GITLAB_TOKEN"
# Without the AI rewrite set in the config
relizy provider-release --no-ai