Bump alpha version

From lablup/backend.ai-webui · View interactive version

Bump alpha version is an AI agent skill from the GitHub repository lablup/backend.ai-webui. Bump version to next alpha and update dependencies after release.

How to use this skill

Skill file

Bump to Alpha Version and Update Dependencies

After a release, this command updates the project to the next alpha version and updates all dependencies within semver-compatible ranges.

Arguments

$ARGUMENTS specifies the new alpha version (e.g., 26.1.0-alpha.0).

If Arguments Not Provided

If no version is specified, automatically determine the next version options:

  1. Read current version from root package.json
  2. Parse the version: Extract MAJOR.MINOR.PATCH (ignore any existing prerelease suffix)
  3. Generate three options for the user to choose from:
  1. Use AskUserQuestion to let the user select:
AskUserQuestion({
  questions: [{
    question: "Which version bump do you want for the next alpha release?",
    header: "Version",
    multiSelect: false,
    options: [
      {
        label: "26.1.1-alpha.0 (Patch)",
        description: "Patch version bump - for small fixes and updates"
      },
      {
        label: "26.2.0-alpha.0 (Minor)",
        description: "Minor version bump - for new features (Recommended)"
      },
      {
        label: "27.1.0-alpha.0 (Major)",
        description: "Major version bump - for breaking changes"
      }
    ]
  }]
})

Note: If the current version already has -alpha.N suffix, strip it before calculating the next versions.

Process

1. Validate Version Format

2. Update Root package.json Version

3. Run `make versiontag`

4. Update Dependencies

Update dependencies in the following package.json files within semver-compatible ranges:

Important Rules:

5. Install Updated Dependencies

Run pnpm install to update the lockfile with new dependency versions.

6. Verify Changes and Fix TypeScript Errors

After updating dependencies, verify everything works correctly:

  1. Run pnpm install to ensure no errors in dependency resolution
  2. Check all package.json files have the correct version
  3. Note any peer dependency warnings
  4. Run TypeScript type checking to detect any type errors caused by updated packages:
# Check TypeScript errors in react package
pnpm --prefix ./react run typecheck

# Check TypeScript errors in backend.ai-ui package
pnpm --prefix ./packages/backend.ai-ui run typecheck

# Or run tsc directly if typecheck script is not available
pnpm --prefix ./react exec tsc --noEmit
pnpm --prefix ./packages/backend.ai-ui exec tsc --noEmit
  1. If TypeScript errors occur, fix them before proceeding:
  1. Run build to ensure everything compiles:
pnpm run build

Commands Reference

# Update root package.json version (use Edit tool)

# Propagate version to all files
make versiontag

# Update dependencies in workspace packages
pnpm update --recursive --latest --workspace

# Or update specific packages
cd react && pnpm update
cd packages/backend.ai-ui && pnpm update

# If engine constraints block: pnpm 12 removed `--ignore-engines`; use the
# `engineStrict` setting instead (per-invocation via `--config.engine-strict`).
pnpm update --config.engine-strict=false

# Install to update lockfile
pnpm install

Output Summary

After completion, provide a summary including:

  1. Version Update: Old version -> New version
  2. Files Updated: List of files modified by make versiontag
  3. Dependencies Updated: Summary of updated packages with version changes
  4. Peer Dependency Warnings: Any warnings encountered
  5. Next Steps: Suggest committing changes if everything looks good

Example Workflow

User: /bump-alpha-version 26.1.0-alpha.0

Claude:
1. Updates package.json version to 26.1.0-alpha.0
2. Runs make versiontag
3. Updates dependencies in react/ and packages/backend.ai-ui/
4. Runs pnpm install
5. Runs typecheck + build
6. Provides summary of all changes

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.