davegarvey/Grubble - Semantic Version Bump

Automatically bump semantic version based on conventional commits

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 9, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: davegarvey/grubble@5891c777d028f21508070f340a2c7e7417458674 # v5.0.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
pushPush changes to remotenofalse
tagCreate git tag for the versionnofalse
release-notesInclude release notes in the git tag annotationnofalse
rawOutput only the new version string (dry run, no changes)nofalse
quietSuppress commit list outputnofalse
presetVersioning strategy (node, rust, git)no""
tag-prefixPrefix for git tagsno""
commit-prefixPrefix for commit messagesno""
package-filesComma-separated list of files to updateno""
git-user-nameGit user name for commitsnogithub-actions[bot]
git-user-emailGit user email for commitsno41898282+github-actions[bot]@users.noreply.github.com
update-major-tagUpdate major version tag (e.g., v4 -> v4.x.x)nofalse
update-minor-tagUpdate minor version tag (e.g., v4.1 -> v4.1.x)nofalse
changelogGenerate and maintain a CHANGELOG.md filenofalse
dry-runCheck if bump is needed without making changes. Does not modify any files; exit code 0 in all non-error cases. Use --bump-type to detect whether a bump would occur.nofalse
bump-type-onlyOutput only the bump type and exit (major, minor, patch, or none)nofalse
branchPush the bump to this branch instead of HEAD (e.g., release/v0.35.0). When set, uses `git push --set-upstream origin <branch>`. The branch is created locally if it does not exist.no""
create-prAfter pushing, automatically open a pull request from the branch to the default branch. Requires `push: true`. When `branch` is not set, it is auto-generated as `release/v<version>`.nofalse
auto-mergeEnable auto-merge with squash on the created PR. Requires `create-pr` to be set. The PR will merge when branch protection requirements (status checks, reviews) pass. WARNING: GitHub does not allow a bot-created PR to approve itself, so if your branch requires review approval the PR will sit in `Waiting for approval` indefinitely. Prefer the release-please flow (no `auto-merge`; a human merges the release PR) when reviews are required — see the README.nofalse
tokenOptional: a GitHub token (PAT or GitHub App installation token) to use for git push authentication. Only needed if you must bypass branch protection. When set, the remote URL is rewritten with the token before grubble runs. Prefer the `branch` + `create-pr` flow instead.no""
release-from-prRun `grubble --release-from-pr <NUMBER>` instead of the bump. When set, the bump-related steps are skipped and the resolved tag spec is emitted as the `release-spec` output. Use this in a post-merge workflow step after a release PR has been merged. Requires `GH_TOKEN` or `GITHUB_TOKEN` in the env. The Action is read-only in this mode (no commits, tags, or pushes).no""
namedescription
versionThe new version number (empty in `release-from-pr` mode)
previous-versionThe previous version number (empty in `release-from-pr` mode)
bump-typeThe type of version bump (major, minor, patch, none; empty in `release-from-pr` mode)
branchThe branch that was pushed to (auto-generated or user-specified; empty in `release-from-pr` mode)
release-specJSON tag spec from `grubble --release-from-pr`. Contains `version`, `tag_name`, `major_tag_name`, `merge_commit_sha`, `title`, and `body`. Empty when `release-from-pr` is not set.