chore(ci): add workflows for CLI releases and changelog generation#1075
Conversation
#### What this PR does / why we need it: - **Added `release-candidate-version` workflow**: - Automates release candidate (RC) version computation and tagging. - Generates a changelog using `git-cliff` for the new RC version. - Outputs relevant metadata like tags, versions, and encoded changelog. - **Added `cli-release` workflow**: - Integrates `release-candidate-version` workflow. - Automates tagging, pre-release creation, and CLI builds. - Supports dry runs for testing without pushing tags. - Added necessary infrastructure: - Created `cliff.toml` Git-Cliff configuration for changelog styling. - Added `compute-rc-version.js` script with tests for RC version computation. Enables automated versioning and changelog creation for CLI releases, aligning with best practices and ensuring consistent workflows. Establishes an automated release process for streamlined software delivery and changelog generation. Signed-off-by: Jakob Möller <jakob.moeller@sap.com>
|
read about git-cliff and it looks promising |
Yes, quite a nice tool. The section for bumps reads similar mighty as Jakob's sophisticated code 😊 |
|
good callout. Originally I wanted to have cliffs bumping code but then noticed quickly that we are not correctly using our conventional commit specification. that is because while we do want to mark breaking changes, we dont want the bump to automatically go into a minor yet. still im thinking if we can maybe make it so that cliff only ever bumps a patch version, that would fix this! |
morri-son
left a comment
There was a problem hiding this comment.
looks very nice! Especially the summary with the table. We should really move to js instead of bash, as this looks much better maintainable and capable.
Signed-off-by: Jakob Möller <jakob.moeller@sap.com>
8b3154a
What this PR does / why we need it
Added
release-candidate-versionworkflow:git-clifffor the new RC version.Added
cli-releaseworkflow:release-candidate-versionworkflow.Added necessary infrastructure:
cliff.tomlGit-Cliff configuration for changelog styling.compute-rc-version.jsscript with tests for RC version computation.Which issue(s) this PR fixes
Enables automated versioning and changelog creation for CLI releases, aligning with best practices and ensuring consistent workflows.
Establishes an automated release process for streamlined software delivery and changelog generation.
eventually resolves open-component-model/ocm-project#699 but depends on #1073