Command Palette

Search for a command to run...

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

publish-npm-version

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

Cuts the next release of Prisma 8: bumps the root package.json version (8.0.0-rc.N → rc.N+1 until release 8.0, which is 8.0.1; after it, the next minor, 8.0.1…

prismaот prisma★ 47 814 звёзд на GitHub

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

Publish next npm version

Audience

Maintainers of Prisma 8 who have permission to push branches and open PRs in the repository. The skill is invoked locally by the maintainer; it does not run as a GitHub Action. Running locally is what makes the resulting PR trigger CI normally — PRs opened by a workflow's GITHUB_TOKEN do not, which defeats the point of cutting a reviewable release.

Background reading

Read docs/oss/releasing.md before running this skill. It covers:

  • The source-of-truth model (root package.json version).
  • Each published package at the version the release plan gives it from the root version and the package's level in levels.ts: 8.1.0 for a Generally Available (GA) package and 8.1.0-ea.0 for an Early Access one (until release 8.0, every package at the root version).
  • The v8 RC line (8.0.0-rc.N) and release 8.0, which is cut once, as 8.0.1, by its own procedure.
  • The npm tags (latest, ea / preview / rc, dev, beta).
  • How to change a package's level. A level below GA can be lowered only in a release pull request.
  • The full release procedure (this skill covers steps 1-2 of 3; merging the PR is the publish trigger — there is no separate dispatch step).
  • That there are no patch releases: a fix ships in the next release, which is cut early when the fix cannot wait.

This SKILL.md covers steps 1-2 — opening the bump PR, assembling upgrade guides, and driving the release notes. Merging (step 3) stays the human gate. Read the canonical upgrade instruction lifecycle for fragment storage, synthesis, archives, and coverage-check modes.

Pre-flight

The skill does not require the maintainer to be on main or to have a clean working tree — it does all the work in a fresh worktree off origin/main, so the maintainer's current worktree (typically a feature branch in worktrees/<feature>/) is left undisturbed.

Before invoking this skill, confirm:

  1. The maintainer can fetch from origin (git fetch origin main succeeds).
  2. You are ready to draft the release notes for this bump. The draft-release-notes skill (invoked in step 8 below) enumerates the merged PRs since the previous actual published stable/RC tag and surfaces the release-notes-worthy changes — including any breaking changes — so this no longer rests on the maintainer's unaided recollection. If you already know of an in-flight breaking change that must be called out, note it so the authoring step gives it prominence.

If either precondition is unmet, stop and surface the issue. Do not try to auto-resolve.

Procedure

  1. Fetch and determine the target version. Run git fetch origin main, then read the current root version from origin/main. The next version follows the release-bump rules in scripts/determine-version-utils.ts: an RC base advances its counter (8.0.0-rc.1 → 8.0.0-rc.2), a pre-8 stable base transitions onto the RC line (0.17.0 → 8.0.0-rc.1), a stable 8.x base advances the minor.

    git fetch origin main
    CURRENT=$(git show origin/main:package.json | node -e 'process.stdout.write(JSON.parse(require("fs").readFileSync(0,"utf8")).version)')
    NEXT=$(node -e "import('./scripts/determine-version-utils.ts').then(m => process.stdout.write(m.computeNextReleaseVersion(process.argv[1])))" "$CURRENT")
    echo "$CURRENT → $NEXT"
    

    For release 8.0 itself, set NEXT=8.0.1 by hand. The helper cannot leave the release candidates: from 8.0.0-rc.N it returns the next release candidate. The releasing page has the whole procedure for that release.

    ($NEXT is only for naming the branch and PR — the authoritative bump in step 3 recomputes it inside the fresh origin/main worktree. The command above runs the helper from your checkout, which may be older than origin/main; step 3 therefore ends by verifying the two agree.)

  2. Create a fresh worktree off origin/main. Use the convention release/<version> for both the branch and the sibling worktree path:

    git worktree add -b "release/$NEXT" "../release-$NEXT" origin/main
    cd "../release-$NEXT"
    

    This is what makes the skill safe to invoke from any worktree: the bump happens against a fresh checkout of origin/main, not against the maintainer's current branch. The branch name encodes the target version so reviewers can tell at a glance what the PR ships.

  3. Bump. From the new worktree, run pnpm bump-version. (For release 8.0 itself, run node scripts/set-version.ts 8.0.1 here instead, for the same reason as in step 1.) The script reads the root package.json version from git show HEAD:package.json (in this worktree, HEAD is origin/main), computes the next release version, and writes it to every workspace package.json via `scripts/set-vers

Полный SKILL.md на GitHub

Установить publish-npm-version в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл publish-npm-version?

Cuts the next release of Prisma 8: bumps the root package.json version (8.0.0-rc.N → rc.N+1 until release 8.0, which is 8.0.1; after it, the next minor, 8.0.1 → 8.1.0), writes each published package's version from its maturity level, and opens a PR titled "chore(release): bump to <next-version>". When the maintainer merges the PR, the `Publish to npm` workflow runs automatically and publishes every package at its planned version and npm tag, plus a matching GitHub Release (a pre-release on the RC line). Also prepares the matching prisma/web docs-site PR from the same release notes, to merge once the release is published. Use when a maintainer asks to "cut the next RC", "cut the next release", "bump to the next version", "open a release PR", or "prepare a publish PR".

Как установить скилл publish-npm-version?

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

Скилл publish-npm-version запускает скрипты?

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

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

Сравнить publish-npm-version с