step-security/SemVer Data Action
Checks SemVer version numbers and provides outputs for the various parts and next version numbers
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version | The semver version number to perform the operations on | yes | — |
Outputs
| name | description |
|---|---|
| version | The version that was passed in and validated as a semver, will not be present if validation failed |
| major | The major version number |
| minor | The minor version number |
| patch | The patch version number |
| isPreRelease | Whether the version provided is a pre-release version |
| preRelease | The pre-release version parts as a JSON Array, e.g. ["alpha", "1"] for "-alpha.1". This will not be present if the version is not a pre-release version number |
| preReleaseString | The pre-release version parts as a string, e.g. "alpha.1" for "-alpha.1". This will not be present if the version is not a pre-release version number |
| nexMajor | The next major version number |
| nextMinor | The next minor version number |
| nextPatch | The next patch version number |