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★ 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.jsonversion). - 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.0for a Generally Available (GA) package and8.1.0-ea.0for 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, as8.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:
- The maintainer can fetch from
origin(git fetch origin mainsucceeds). - You are ready to draft the release notes for this bump. The
draft-release-notesskill (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
Fetch and determine the target version. Run
git fetch origin main, then read the current rootversionfromorigin/main. The next version follows the release-bump rules inscripts/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.1by hand. The helper cannot leave the release candidates: from8.0.0-rc.Nit returns the next release candidate. The releasing page has the whole procedure for that release.(
$NEXTis only for naming the branch and PR — the authoritative bump in step 3 recomputes it inside the freshorigin/mainworktree. The command above runs the helper from your checkout, which may be older thanorigin/main; step 3 therefore ends by verifying the two agree.)Create a fresh worktree off
origin/main. Use the conventionrelease/<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.Bump. From the new worktree, run
pnpm bump-version. (For release 8.0 itself, runnode scripts/set-version.ts 8.0.1here instead, for the same reason as in step 1.) The script reads the rootpackage.jsonversionfromgit show HEAD:package.json(in this worktree, HEAD isorigin/main), computes the next release version, and writes it to every workspacepackage.jsonvia `scripts/set-vers
Установить 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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic