Files
integraci-dagger-modules/release/README.md
T

49 lines
1.7 KiB
Markdown

# IntegraCI — Release Dagger Module
Computes the next [SemVer](https://semver.org) from
[Conventional Commits](https://www.conventionalcommits.org) and renders a
changelog using [`git-cliff`](https://git-cliff.org). Designed to drive the
release lifecycle from CI without prescribing how tags or PRs are pushed.
## Functions
| Function | Description |
|----------------|----------------------------------------------------------|
| `next-version` | Inspect commits since `current`, output bump + next SemVer |
| `changelog` | Render the Markdown changelog for a tag (`git-cliff`) |
| `plan` | One-shot `next-version` + `changelog` |
## Usage
```bash
# Compute the next version from current v1.2.3
dagger call -m dagger/release next-version \
--src . \
--current v1.2.3
# Render a changelog
dagger call -m dagger/release changelog \
--src . --tag v1.3.0
# Combined release plan (used by IntegraCI release pipelines)
dagger call -m dagger/release plan \
--src . --current v1.2.3
```
## Bump Rules
| Commit pattern | Bump |
|---------------------------------------------|--------|
| `BREAKING CHANGE:` footer or `<type>!:` | major |
| `feat:` / `feat(<scope>):` | minor |
| `fix:` / `perf:` / `refactor:` (any scope) | patch |
| anything else | none |
The module is intentionally pure: it never tags or pushes. Callers compose
the side-effects (e.g. `git tag`, `gh release create`, opening a PR with the
generated changelog) in their own pipeline so platform policy gates apply.
## License
Apache 2.0.