vensas/Auto Version Bump
Automatically bumps versions in package.json or .csproj files based on <!-- Version: TYPE --> comments in CHANGELOG.md [Unreleased] sections. Discovers all changelogs in the repository automatically.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version-files | Optional JSON map of changelog path (repo-relative) to version file path (repo-relative). Overrides auto-discovery for specific changelogs. Example: '{"src/backend/Feps/CHANGELOG.md": "src/backend/Feps/Feps.Api/Feps.Api.csproj"}' | no | {} |
| auto-commit | Whether to automatically commit and push the version bump changes. Requires the workflow to have 'contents: write' permission. | no | false |
| commit-message | Commit message used when auto-commit is enabled. The placeholder {updates} is replaced with the list of version updates. | no | chore: bump versions [skip ci]\n\n{updates} |
| post-bump-command | Optional shell command to run after versions are bumped but before committing. Use this to regenerate lockfiles or run other post-bump tasks. Only runs when auto-commit is enabled and changes were made. Example: 'cd src/frontend && pnpm install --lockfile-only' | no | "" |
| git-user-name | Git user.name used for the auto-commit. | no | github-actions[bot] |
| git-user-email | Git user.email used for the auto-commit. | no | github-actions[bot]@users.noreply.github.com |
Outputs
| name | description |
|---|---|
| has_changes | Whether any versions were bumped (true/false) |
| updates | Comma-separated list of version updates performed |