This action is designed to be used with CI/CD pipelines that automatically increment the version of the application.
GITHUB_TOKEN
requiredThe github token.
tag-prefix
A value prefixed to the version number when tagging the repo.
''
default-version
The version number that will be used if no semver tag is found.
'1.0.0'
incremented-value
What value should be incremented.
'major'|'minor'|'patch'
'patch'
create-release
A value to set whether to create a release along with the tag. If the value is a branch name, then a release is created if value equals the name of branch that triggered the workflow.
true|false|branch_name
true
prerelease
The prerelease tag that will be used in the semver version number.
metadata
The metadata tag that will be used in the semver version number.
previous-major-version
A value to use for the major version when searching for the previous version tag.
previous-minor-version
A value to use for the minor version when searching for the previous version tag.
previous-prerelease
A value to use for the prerelease value when searching for the previous version tag.
previous-metadata
A value to use for the metadata value when searching for the previous version tag.
add-minor-tag
Adds/updates a tag for the major.minor version.
false
add-major-tag
Adds/updates a tag for the major version.
false
dry-run
The prerelease tag that will be used in the semver version number.
false
previous-version
The previous version number.
core-version
The core version part of the semantic version.
major-version
The major version part of the semantic version.
minor-version
The minor version part of the semantic version.
patch-version
The patch version part of the semantic version.
semantic-version
The calculated version number.
uses: SOLIDSoftworks/semver-tags@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
tag-prefix: 'v'
default-version: '0.0.1'
prerelease: 'alpha'