thekathan/Release Semver
PR-based semantic versioning. Tags created on every PR commit. Feature/fix→release creates -feature.N/-fix.N tags. Release→main creates -rc.N tags. Hotfix→main creates -hotfix.N tags. Merge to main creates official release.
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-pr-tags | Enable automatic tagging on PR commits. Creates commit tags for feature/fix branches and prerelease tags for release/hotfix branches. | no | false |
| github-token | GitHub token for API access | no | ${{ github.token }} |
| branch-patterns | Custom branch patterns (JSON format). Example: {"minor":["feature/*","feat/*"],"patch":["fix/*","bugfix/*"]} | 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 (e.g., v1.2.0-feature.1, v1.2.0-rc.1, v1.2.0) |
| is-prerelease | Whether this is a prerelease (true for -rc/-hotfix tags, false for feature/fix/etc and official releases) |
| branch | Branch name used for versioning |
| source-branch | Source branch from PR (for main merges) |
| pr-number | PR number (when creating PR tags) |
| pr-target | PR target branch (when creating PR tags) |
| previous-version | Previous version tag |
| bump-type | Type of version bump (Minor or Patch) |