Skip to content

provider-release ​

Create the GitHub or GitLab releases of the current versions, with their changelog as release notes.

Usage ​

bash
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 ​

FlagDescriptionConfig
--from <ref>Start of the commit range (tag or commit), instead of the previous release tagfrom
--to <ref>End of the commit rangeto
--provider <provider>github or gitlab, instead of the detected one-
--token <token>Token of the git providertokens
--ai, --no-aiForce or disable the AI rewrite of the release notesAI

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 ​

bash
# 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

See Also ​