digicatapult/check-version-before-release
Asserts package version is the same or higher than latest published
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| package_manager | specifies a package manager so we can select a path to use | no | npm |
| cargo_package_location | path to files | no | ./ |
| npm_package_location | path to files | no | ./ |
| poetry_package_location | path to files | no | ./ |
| token | The token to use to access the GitHub API | yes | — |
| fail_on_same_version | Should action fail if the version matches the latest published | no | true |
| tag_regex | Regular expression for filtering tags | no | \d+.\d+.\d+ |
Outputs
| name | description |
|---|---|
| is_new_version | boolean indicating if this is a new version true = yes |
| version | current version |
| build_date | date of the build |
| is_prerelease | boolean indicating if this is a prerelease true = yes |
| npm_release_tag | release tag for npm packages. `latest` or `next` |