sharesight/compare-package-json-version-with-latest
Allows us to compare your local `package.json` version with a Github Package Registry's latest version.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| repository | The repository to get the latest package from. Defaults to `env.GITHUB_REPOSITORY`. | no | — |
| directory | Directory where your `package.json` can be found. Defaults to `env.GITHUB_WORKSPACE`. | no | — |
Outputs
| name | description |
|---|---|
| matches | If the versions match, one of 'true' | 'false' |
| newer | If the current version is newer, one of 'true' | 'false' |
| diff | The diff between versions, one of null | 'major' | 'premajor' | 'minor' | 'preminor' | 'patch' | 'prepatch' | 'prerelease' |
| current_version | The current version in package.json |
| latest_version | The latest, remote version |