mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 04:58:17 +00:00
A GitHub Action to generate semantic version from a git repository's commit history.
| .github/workflows | ||
| dist | ||
| .eslintrc.json | ||
| .gitignore | ||
| action.yml | ||
| index.js | ||
| index.test.js | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| readme.md | ||
Git-Based Semantic Versioning
This action produces a semantic version for a repository using the repository's git history.
Usage
- uses: paulhatch/semantic-version@v1
with:
# The main branch to count commits on
main_branch: "master"
# The release branch pattern which be be used as a prefix for release branches
release_branch: "release"
# A string which, if present in a git commit, indicates that a change represents a major (breaking) change
major_pattern: "(MAJOR)"
# Same as above except indicating a minor change
minor_pattern: "(MINOR)"