actions-marketplace-validations/semver-utils

One-stop shop for working with semantic versions in your workflows

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
versionA version to processyes
compare-toA version to compare with, if anyno
diff-withA version to diff with. If not specified, the version will be diffed with the `compare-to` input. If `compare-to` is not specified either, nothing happens.no
satisfiesA range to check againstno
identifierAn identifier to pass to the semver's inc functionno
lenientDo not fail on incorrect inputnotrue
namedescription
releaseVersion's release (major.minor.patch)
majorVersion's major number
minorVersion's minor number
patchVersion's patch number
buildVersion's build
build-partsNumber of components in version's build. Individual сomponents are returned as `build-N` outputs, where an is an index from zero to `build-parts` - 1.
prereleaseVersion's pre-release
prerelease-partsNumber of components in version's pre-release. Individual сomponents are returned as `prerelease-N` outputs, where an is an index from zero to `prerelease-parts` - 1.
comparison-resultIf the compare-to was provided, this output will contain "<" if comes after the version, ">" if it preceeds it, and "=" if they are equal
diff-resultIf the diff-to or compare-to were provided, this output will contain the diff result
satisfiestrue if the version satisfies the given range
inc-majorA result of the call of the semver's `inc` function with `major` increment
inc-premajorA result of the call of the semver's `inc` function with `premajor` increment
inc-minorA result of the call of the semver's `inc` function with `minor` increment
inc-preminorA result of the call of the semver's `inc` function with `preminor` increment
inc-patchA result of the call of the semver's `inc` function with `patch` increment
inc-prepatchA result of the call of the semver's `inc` function with `prepatch` increment
inc-prereleaseA result of the call of the semver's `inc` function with `prerelease` increment