changelog
Write the CHANGELOG.md files from the commits, without bump, commit nor publication.
Usage
bash
relizy changelog [options]changelog is the second step of release. Alone, it writes the entry of the current version of each package, from the commits since its last release tag: run it after bump. In a monorepo, it also writes the root CHANGELOG.md, then runs the format command. The global options apply too (--dry-run, --group...).
See Changelog for the content of the entries.
Options
| Flag | Description | Config |
|---|---|---|
--from <ref> | Start of the commit range (tag or commit), instead of the last release tag | from |
--to <ref> | End of the commit range, HEAD by default | to |
--format-cmd <cmd> | Command run after writing the changelogs, {{files}} replaced by their paths | changelog.formatCmd |
--no-format-cmd | Do not format the changelogs (no formatter detected) | changelog.formatCmd: false |
--no-root-changelog | Do not write the root CHANGELOG.md of a monorepo | changelog.rootChangelog |
--private-packages <mode> | release: write the changelogs of the private packages too, ignore: leave them out | monorepo.privatePackages |
Examples
bash
# Preview the changelogs
relizy changelog --dry-run
# A given range
relizy changelog --from v1.0.0 --to v1.1.0
# Format the files once written
relizy changelog --format-cmd "pnpm exec prettier --write '**/CHANGELOG.md'"