snailuu/Patch Package Version
auto patch package.json version
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| token | The GitHub token to use for repository operations | yes | — |
| version-prefix | Version tag prefix (e.g., 'v', 'version-', 'rel-') | no | v |
| git-user-name | Git user name for commits | no | GitHub Action |
| git-user-email | Git user email for commits | no | action@github.com |
| supported-branches | Comma-separated list of supported branches | no | main,beta,alpha |
| enable-changelog | Enable automatic CHANGELOG generation | no | true |
| comment-title | Title for PR comments (e.g., '📦 版本管理', 'Version Management') | no | 📦 版本管理 |
| enable-npm-publish | Enable automatic npm publishing | no | false |
| npm-token | NPM authentication token for publishing | no | — |
| npm-registry | NPM registry URL | no | https://registry.npmjs.org/ |
| npm-tag | NPM publish tag (will auto-determine based on branch if set to 'latest') | no | latest |
| npm-access | NPM package access level (public/restricted) | no | public |
| npm-publish-strict | Strict mode - fail workflow if npm publish fails | no | false |
Outputs
| name | description |
|---|---|
| next-version | The next version that was calculated |
| preview-version | Preview version for PR comments |
| is-preview | Whether this was a preview run (true/false) |
| published-version | The version that was published to npm |
| published-tag | The npm tag used for publishing |
| npm-registry | The npm registry that was used |
| npm-publish-failed | Whether npm publish failed (true/false) |
| npm-publish-error | Error message if npm publish failed |