finnoconsult/Increment Package.json Version
Bumps version in package.json based on user defined PR labels
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| default_branch | default branch of the project. i.e main or master | no | remotes/origin/master |
| github_token | github token | yes | — |
| source | what text shall we match against the following semver triggers, possible values: title, label | no | title |
| pull_request | PR number, if not given, context.issue.number is used | no | — |
| major_pattern | regexp pattern used to trigger major bump against input source | no | /^(major|release)/i |
| minor_pattern | regexp pattern used to trigger minor bump against input source | no | /^feat/i |
| patch_pattern | regexp pattern used to trigger patch bump against input source | no | /^fix/i |
| package_json_path | package.json location from where we determine current version, package.json in repo root by default | no | — |
| previous_version | Previous version to be used, which would override any version value from package.json | — | — |
Outputs
| name | description |
|---|---|
| previous_version | Previous version in package.json for the actual branch |
| previous_version_master | Previous version in package.json for the master branch |
| new_version | New version in package.json |