logi-camp/conventional-semver
Calculate next semantic version from conventional commits — pure bash, no dependencies
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| prefix | Tag prefix (e.g. "v" produces v1.2.3) | no | v |
| default_bump | Bump type when no conventional commits found (major/minor/patch/none) | no | patch |
| initial_version | Starting version when no tags exist | no | 0.0.0 |
| prerelease | Prerelease identifier (e.g. rc, alpha, beta). When set, produces prerelease tags | no | "" |
| prerelease_identifier | How to generate prerelease identifier: "numbered" (rc.1, rc.2) or "sha" (rc.a1b2c3d) | no | numbered |
| include_sha | Append short commit SHA to tag. "auto" includes SHA for prerelease only, "true" always includes, "false" never includes | no | auto |
Outputs
| name | description |
|---|---|
| version | Next semantic version (e.g. 1.2.3 or 1.3.0-rc.1-a1b2c3d) |
| version_tag | Next version with prefix (e.g. v1.2.3 or v1.3.0-rc.a1b2c3d) |
| previous_version | Previous version without prefix (e.g. 1.0.0) |
| previous_version_tag | Previous version tag (e.g. v1.0.0), empty if no tags exist |
| base_version | Base version without prerelease suffix or SHA (e.g. 1.3.0) |
| base_version_tag | Base version tag with prefix (e.g. v1.3.0) |
| changelog | Markdown changelog grouped by commit type |
| bump | Bump type applied: major / minor / patch / none |
| last_commit | SHA of the HEAD commit at time of calculation |
| rc_number | Pre-release identifier (number or SHA). Only set when prerelease is used |