Use when bumping the AionUi version: update package.json, run checks, branch, commit, push, create PR, wait for merge, tag release.
Automate the AionUi version bump workflow: update version → quality checks → branch → commit → push → PR → tag.
Usage: /bump-version [version]
/bump-version 1.8.17 — bump to specified version/bump-version — auto-increment patch (e.g. 1.8.16 → 1.8.17)git branch --show-current
git status --short
main → Stop: "Please switch to main before running bump-version."git pull --rebase origin main
Fails → Stop: "Failed to pull latest code. Please resolve conflicts or network issues first."
Read package.json → extract version field.
major.minor.patch, increment patch by 1Display: "Bumping version: {current} → {target}"
Use Edit tool to replace:
"version": "{current}""version": "{target}"bun run lint
bun run format
bunx tsc --noEmit
bunx vitest run
Fails → Stop: "Tests failed. Please fix failing tests before bumping the version."
git checkout -b chore/bump-version-{target}
git add -A
git commit -m "chore: bump version to {target}"
git push -u origin chore/bump-version-{target}
gh pr create --base main \
--title "chore: bump version to {target}" \
--body "Bump version to {target}"
Display PR URL. Then pause:
"PR created: {URL}. Please notify a team member to merge it, then confirm to continue."
Wait for user confirmation before proceeding.
git checkout main
git pull --rebase origin main
git branch -d chore/bump-version-{target}
Check if remote branch still exists:
git ls-remote --heads origin chore/bump-version-{target}
git push origin --delete chore/bump-version-{target}git tag v{target}
git push origin v{target}
Display: "Tag v{target} created and pushed. Version bump complete!"
1. Must be on clean main
2. git pull --rebase
3. Determine target version
4. Edit package.json
5. lint + format + tsc
6. vitest run
7. branch chore/bump-version-{target} → commit → push
8. gh pr create → wait for merge
9. checkout main → pull → delete branch
10. git tag v{target} && git push origin v{target}