solidsoftworks/Semver tags
Gets the previous semver tag and calculates the next version. Optionally apply the version as a new tag.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| GITHUB_TOKEN | The github token. | yes | — |
| tag-prefix | A value prefixed to the version number when tagging the repo. | no | "" |
| default-version | The version number that will be used if no semver tag is found. | no | 1.0.0 |
| incremented-value | What value should be incremented? | no | patch |
| create-release | A value to set whether to create a release along with the tag. Values can be true|false|branch_name. | no | true |
| prerelease | The prerelease tag to use. | no | — |
| metadata | The metadata to use. | no | — |
| previous-major-version | A value to use for the major version when searching for the previous version tag. | no | — |
| previous-minor-version | A value to use for the minor version when searching for the previous version tag. | no | — |
| previous-prerelease | A value to use for the prerelease value when searching for the previous version tag. | no | — |
| previous-metadata | A value to use for the metadata value when searching for the previous version tag. | no | — |
| add-minor-tag | Adds/updates a tag for the major.minor version if the semver version is not a prerelease. | no | false |
| add-major-tag | Adds/updates a tag for the major version if the semver version is not a prerelease. | no | false |
| dry-run | Performs a version calculation without committing a tag. | no | false |
Outputs
| name | description |
|---|---|
| semantic-version | The calculated 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. |
| previous-version | The previous version number. |