Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

create-release

БесплатноБез исполняемых скриптовНе проверен

Cut a Backend.AI WebUI release — tag an alpha straight from `main`, or cut/update the `MAJOR.MINOR` release branch for beta/rc/stable — create the GitHub…

lablupот lablup★ 137 звёзд на GitHub

Об этом скилле

Create Release

Cut a Backend.AI WebUI release, create its GitHub release, and move main to the next version.

Release model

Release Cut from Release commit main afterwards
X.Y.0-alpha.N origin/main HEAD, tagged as is none bump PR to X.Y.0-alpha.N+1
first freeze of X.Y — its first beta, rc or stable (usually X.Y.0-rc.0) origin/main → branch X.Y release: v{VERSION} on X.Y bump PR to the next line's alpha.0
later beta / rc / stable / patch origin/X.Y release: v{VERSION} on X.Y unchanged
  • Alphas are snapshots of main. main already holds the next alpha version in every file make versiontag writes (the previous run's bump PR put it there), so the alpha tag goes on origin/main HEAD with no commit, no checkout and no release branch.
  • The release branch starts at the first freeze. The team usually goes alpha → rc.0 without a beta, so "first freeze" means the first non-alpha release of X.Y, whatever its suffix. From then on fixes reach X.Y through cherry-pick-to-release, not by merging main.
  • Build stamps are regenerated by the release build. package.yml's build_web runs make versiontag, so buildNumber / buildDate / revision in version.json and index.html may be stale on the tagged commit. The version fields may not: build_mac packages the committed electron-app/package.json without re-stamping it, so every file make versiontag writes must already read {VERSION}.

Version files: root package.json (the source, set by hand) and what make versiontag writes from it — version.json, index.html, manifest.json, react/package.json, packages/backend.ai-ui/package.json, packages/backend.ai-docs-toolkit/package.json, electron-app/package.json.

Shell state does not survive between Bash tool calls. The $WT, $BWT, $BASE_TAG below are placeholders: substitute the literal value in every command, or set and use a variable within one call.

Arguments

$ARGUMENTS specifies the version to release (e.g., 26.4.0-alpha.1, 26.4.0-rc.0, 26.4.0). "다음 알파" / "next alpha" means the version origin/main already reads.

If Arguments Not Provided

  1. git fetch origin main --tags, then read the version from git show origin/main:package.json.
  2. Look up what exists for main's line (git tag -l 'vX.Y.*') and for every frozen line still in progress — a line with a beta/rc tag and no stable vX.Y.0 yet (usually the previous line after its rc.0).
  3. Offer options via AskUserQuestion, labels filled with computed versions:
    • main reads X.Y.0-alpha.N, its tag does not exist, and the line is not frozen (step 1) → X.Y.0-alpha.N (recommended), X.Y.0-rc.0, custom.
    • The tag already exists → say the bump PR has not merged yet and offer only the freeze / custom options; another alpha would repeat a version.
    • Each frozen line in progress → its next rc.N (or beta.N) and stable X.Y.0. A released line takes a patch X.Y.Z+1 only when asked.

Process

1. Validate Prerequisites

  • Validate the format: X.Y.Z or X.Y.Z-{alpha|beta|rc}.N.
  • Fetch everything the run reads, so no decision rests on a stale ref:
    git fetch origin main --tags
    git fetch origin X.Y 2>/dev/null || true   # absent before the first freeze
    
  • v{VERSION} must not exist (git rev-parse -q --verify refs/tags/v{VERSION}).
  • Classify the release:
    • frozen = any tag vX.Y.0-beta.*, vX.Y.0-rc.* or vX.Y.0 exists.
    • alpha on a frozen line → stop: main already carries the next line's work, so an X.Y alpha would publish it under the wrong line.
    • non-alpha on a line that is not frozen → first freeze (2b). origin/main must still be on line X.Y (its package.json reads X.Y.0-…); if it already moved to a later line, stop — branching would ship that line's work.
    • non-alpha on a frozen line → later release (2c).
  • Never run in the user's checkout and never git switch a local X.Y branch: it may be checked out in another worktree. Each step that needs a tree creates a detached worktree under .claude/worktrees/ and removes it when done. Stage with git add -u, never git add -A.

2a. Alpha — tag main

No worktree needed.

  1. Every version file on origin/main must read {VERSION}:
    git grep -n '"version": \|packageVers
    
Полный SKILL.md на GitHub

Установить create-release в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл create-release?

Cut a Backend.AI WebUI release — tag an alpha straight from `main`, or cut/update the `MAJOR.MINOR` release branch for beta/rc/stable — create the GitHub release, and open the PR that moves `main` to its next version.

Как установить скилл create-release?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл create-release запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить create-release с