Automatically create semantic version tags with intelligent pre-release detection.
- 🎯 Semantic Versioning: Support for major, minor, and patch bumps
- 🚀 Pre-release Support: Alpha, beta, RC, and dev versions
- 🤖 Auto-detection: Automatically detect current version from git tags
- 🔧 Customizable: Custom tag prefixes and options
- 📤 Optional Push: Choose to push immediately or create locally
- 🎨 Rich Outputs: Use outputs in subsequent workflow steps
- name: Create version tag
uses: anantakumarghosh/semver-tag-action@v1
with:
version-level: patch| Input | Description | Required | Default |
|---|---|---|---|
version-level |
Version bump level | ✅ Yes | - |
specific-version |
Create specific version tag | ❌ No | - |
current-version |
Current version | ❌ No | Auto-detect |
tag-prefix |
Prefix for version tags | ❌ No | v |
push |
Push the tag to remote | ❌ No | true |
token |
GitHub token | ❌ No | ${{ github.token }} |
| Output | Description |
|---|---|
new-version |
The new version created |
is-prerelease |
Whether this is a pre-release |
tag-name |
Full tag name with prefix |
MIT License - see LICENSE for details.