thekathan/Trunk Semver
Trunk-based semantic versioning. Automatic version bumps from branch naming patterns. Supports major, minor, patch bumps and pre-release tags.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| major-version | Major version number | no | 1 |
| enable-prerelease | Enable pre-release versioning on feature/fix branches | no | false |
| github-token | GitHub token for API access | no | ${{ github.token }} |
| branch-patterns | Custom branch patterns (JSON format). Example: {"major":["breaking/*"],"minor":["feature/*","feat/*"],"patch":["fix/*","hotfix/*"]} | no | "" |
| comment-on-pr | Add comment to PR with calculated version | no | false |
| add-to-summary | Add version to GitHub Actions job summary | no | false |
Outputs
| name | description |
|---|---|
| version | Calculated semantic version |
| is-prerelease | Whether this is a pre-release version |
| branch | Branch name used for versioning |
| previous-version | Previous version tag |
| bump-type | Type of version bump (Minor or Patch) |