standard-release (GitLab CI component)
The driftsys default release pipeline as a GitLab CI component. One include line gets you commit-message validation on every MR plus a semver bump-and-tag plus a published release page with notes on every push to the default branch.
Itβs a thin preset over the commitlint, release, and release-notes components β same defaults, fewer lines of YAML in your repo.
Inputs
| Name | Required | Default | Description |
|---|---|---|---|
range | no | $CI_MERGE_REQUEST_DIFF_BASE_SHA..HEAD | Commit range commitlint validates on MRs. |
remote | no | origin | Remote the release job pushes to. |
dry-run | no | false | If true, the release job bumps + tags but skips push. |
Example
# .gitlab-ci.yml
include:
- component: gitlab.com/driftsys/ci/standard-release@~latest
Notes
- The component pins its sub-components (
commitlint,release,release-notes) at$CI_COMPONENT_REF, sostandard-release@v0.2.0reproducibly uses the v0.2.0 sub-components. - The
release-notesjob runs on tag pipelines (afterreleasepushes the tag), not on the default-branch pipeline that thereleasejob belongs to. - For finer control over a sub-component, include it directly instead of (or in
addition to)
standard-release; the preset only exposes the most common subset of inputs.