Bump Version banner
iOfficeAI iOfficeAI

Bump Version

Git community intermediate

Description

Automate the AionUi version bump workflow: update version, install, branch, commit, push, and create PR.

Installation

Terminal
claude install-skill https://github.com/iOfficeAI/AionUi

README

Bump Version

Automate the AionUi version bump workflow: update version, install, branch, commit, push, and create PR.

Usage

/bump-version [version]
    undefined

Steps

Step 1 — Pre-flight Checks

Run these commands and verify both conditions. If either fails, **stop immediately**.

git branch --show-current
git status --short
    undefined

Step 2 — Pull Latest Code

git pull --rebase origin main
    undefined

Step 3 — Read Current Version

Read `package.json` and extract the `version` field value (e.g. `"1.8.16"`).

Step 4 — Determine Target Version

    undefined

Display: "Bumping version: {current} → {target}"

Step 5 — Update package.json

Use the Edit tool to replace the `version` field in `package.json`:

    undefined

Step 6 — Run Quality Checks

bun run lint
bun run format
bunx tsc --noEmit
    undefined

Step 7 — Run Tests

bunx vitest run
    undefined

Step 8 — Create Branch

git checkout -b chore/bump-version-{target}

Step 9 — Commit

git add -A
git commit -m "chore: bump version to {target}"

Step 10 — Push

git push -u origin chore/bump-version-{target}

Step 11 — Create PR

gh pr create --base main --title "chore: bump version to {target}" --body "Bump version to {target}"

Display the PR URL to the user when done.

Step 12 — Wait for PR to be Merged

Display: "PR created: {URL}. Please notify a team member to merge it, then continue with the following steps."

Pause here and wait for the user to confirm the PR has been merged before proceeding.

Step 13 — Switch Back to main and Pull Latest

git checkout main
git pull --rebase origin main

Step 14 — Delete Local Branch

git branch -d chore/bump-version-{target}

Step 15 — Delete Remote Branch (if not auto-deleted by GitHub)

Check whether the remote branch