A GitHub Action to generate semantic version from a git repository's commit history.
Find a file
2019-12-05 20:53:39 -05:00
.github/workflows Initial Commit 2019-12-05 20:21:29 -05:00
dist Initial Commit 2019-12-05 20:21:29 -05:00
.eslintrc.json Add ESLint configuration file 2019-12-05 20:28:26 -05:00
.gitignore Initial Commit 2019-12-05 20:21:29 -05:00
action.yml Initial Commit 2019-12-05 20:21:29 -05:00
index.js Run exec silently 2019-12-05 20:53:39 -05:00
index.test.js Initial Commit 2019-12-05 20:21:29 -05:00
LICENSE Initial Commit 2019-12-05 20:21:29 -05:00
package-lock.json Initial Commit 2019-12-05 20:21:29 -05:00
package.json Initial Commit 2019-12-05 20:21:29 -05:00
readme.md Update documentation 2019-12-05 20:43:03 -05:00

GitHub Actions status

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)"