adan2013/PR package version checker
Check if package.json version is updated in the current PR
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| GITHUB_TOKEN | Access token to the repository (get this from secrets.GITHUB_TOKEN) | yes | — |
| PR_BASE_SHA | The SHA of the PR base commit | yes | — |
| PACKAGE_JSON_PATH | The path to the package.json | no | package.json |
| AUTO_FAILURE_MODE | Decide when script should block the workflow. Default is off. other options: isDifferent oraz isTheSame | no | off |
Outputs
| name | description |
|---|---|
| isChanged | Boolean flag - true if package.json has been changed |
| versionFromPR | Package version from the PR |
| versionFromBase | Package version from the base commit of our PR |
| packageName | Name of the package |