| name | release-manager |
| description | Run the standard vite-plus release process end-to-end as the release manager. Covers preparing the release PR, syncing the NAPI binding version, writing the categorized changelog, smoke-testing via a preview build, handling release-branch CI failures, merging, and post-release verification and announcements. Use when asked to cut, prepare, or manage a vite-plus release (e.g. "release v0.2.3", "act as release manager"). |
| allowed-tools | Bash, Read, Edit, Write, Grep, Glob, WebFetch |
Vite+ Release Manager
Run a standard vite-plus release from version bump to published announcement. Any maintainer with repo write access can follow this; the only extra privilege needed is approval rights on the release GitHub environment (step 7).
Usage
/release-manager # start a new release: ask for the target version, begin at step 1
/release-manager X.Y.Z # start a new release for that version
/release-manager <PR URL or #N> # take over an in-flight release
When given a release PR (URL or number), do not start from step 1. First audit the release's current state, then continue from the earliest unfinished step:
- Is the binding version synced? (step 2:
grep -c "'<prev>'" packages/cli/binding/index.cjs on the release branch)
- Is the PR description still the
prepare_release boilerplate, or already a categorized changelog? (step 3)
- Is a preview build present and for the current head? (step 4)
- Does
main have commits the release branch lacks? (git log origin/release/vX.Y.Z..origin/main, step 5)
- What is CI status? (
gh pr checks <PR#>, step 5)
- Already merged? Check the Release workflow (
gh run list --workflow Release --repo voidzero-dev/vite-plus) and whether the GitHub release body is still the generated stub, then continue at step 7 or 8.
Report the detected state before making changes, so the previous release manager's work is not redone or overwritten.
Pipeline overview
Prepare Release workflow bumps versions and opens the release PR (release/vX.Y.Z -> main).
- Release manager: sync
binding/index.cjs, write the changelog PR description, optionally smoke-test via a preview build, get CI green.
- Merging the PR pushes a
packages/cli/package.json change to main, which triggers release.yml: build, manual approval gate, npm publish, GitHub release, Docker image, Discord notification.
- Release manager: polish the GitHub release notes, verify installs, announce.
Canonical sources: .github/workflows/prepare_release.yml, .github/workflows/release.yml, .github/workflows/publish-to-pkg.pr.new.yml.
1. Start the release
gh workflow run prepare_release.yml --repo voidzero-dev/vite-plus -f version=X.Y.Z
The workflow bumps packages/cli/package.json, packages/core/package.json, packages/cli/binding/Cargo.toml, and crates/vite_global_cli/Cargo.toml, refreshes Cargo.lock, and opens a PR titled release: vX.Y.Z from branch release/vX.Y.Z. The PR body ends with Merging this PR will trigger the release workflow. and that line must survive every later edit.
2. Sync the NAPI binding version (required every release)
NAPI bakes the package version into version checks in packages/cli/binding/index.cjs (26+ sites). prepare_release bumps package.json but does not regenerate this file, so CI's Ensure no unexpected file changes after build step in the CLI E2E test job fails until it is synced. Do this immediately; do not wait for CI to fail.
git fetch origin release/vX.Y.Z && git checkout release/vX.Y.Z
grep -c "'<prev>'" packages/cli/binding/index.cjs
grep -c "expected <prev> but got" packages/cli/binding/index.cjs
Apply two whole-file text replacements (<prev> is the previous release version, e.g. 0.2.1):
'<prev>' -> '<curr>'
expected <prev> but got -> expected <curr> but got
Then confirm the replacement took; both counts must now be zero:
grep -c "'<prev>'" packages/cli/binding/index.cjs
grep -c "expected <prev> but got" packages/cli/binding/index.cjs
Do not regenerate via a full build; the text replace is deterministic and byte-identical to what napi build would produce for a version-only bump. Commit with this exact message shape (it makes git log --grep find the sync across releases) and push:
chore(release): sync binding/index.cjs version to <curr>
NAPI bakes the package.json version into binding/index.cjs version
checks. The prepare_release workflow bumps package.json but does not
regenerate this file, so the CI build's regeneration step produces a
diff that the post-build no-unexpected-changes guard rejects.
This is the only kind of commit that goes directly on the release branch. Everything else goes through main (see step 5).
3. Write the release PR description
The release tag does not exist yet, so read release files from the PR head branch and generate notes against main:
git fetch --tags && git tag --sort=-version:refname | head -5
git log --oneline v<prev>..origin/main
gh api repos/voidzero-dev/vite-plus/releases/generate-notes \
-f tag_name=v<curr> -f previous_tag_name=v<prev> -f target_commitish=main
git show origin/release/v<curr>:packages/core/package.json
git show origin/release/v<curr>:packages/tools/.upstream-versions.json
git show origin/release/v<curr>:pnpm-workspace.yaml
Structure
Release vite-plus vX.Y.Z: <theme>.
<One or two sentences on the release theme. When a blog post accompanies the release, read it first (via its preview URL if not yet deployed), align the theme with it, and link the final URL here even if that URL is not live yet.>
### Highlights
### Features
### Fixes & Enhancements
### Refactor
### Docs
### Chore
### Bundled Versions
### Upgrade
### New Contributors
**Full Changelog**: https://github.com/voidzero-dev/vite-plus/compare/v<prev>...v<curr>
---
Merging this PR will trigger the release workflow.
Categorization rules
- Every PR from
generate-notes appears exactly once. No PR is listed both in Highlights and a section below.
- Describe the net change between the two released versions, not intra-cycle churn. When several PRs touch the same area within one release (one narrows a behavior, a later one broadens it back), the reader only sees the delta from
v<prev> to v<curr>; describe that once, listing every PR number, and do not narrate a regression that was introduced and then fixed inside the cycle. Apply this to the intro/theme sentence too.
feat -> Features, fix -> Fixes & Enhancements, refactor and revert -> Refactor (never Chore), docs -> Docs, test / ci / chore -> Chore.
feat(docs) goes in Docs when the user-facing surface is the docs site.
- Highlights: 3-5 changes a vite-plus user will notice (new capabilities, security, major fixes). Skip developer-tooling-only conveniences. Each highlight ends with
, by @<author>, same as every other entry.
- Entry format:
Description ([#N](https://github.com/voidzero-dev/vite-plus/pull/N)), by @author. Describe the user-visible behavior, not the implementation.
- Upstream dependency upgrade PRs (
feat(deps): upgrade upstream dependencies): consolidate all of them into one Features entry with net oldest-to-latest version changes (e.g. vite 8.0.16 -> 8.1.2), listing every PR number. Check the upgraded range for security fixes (search the upstream changelog for CVE/GHSA); if present, add a dedicated security entry quoting severity and linking the advisory.
- vite-task bumps (
bump vite-task to <commit>): expand the full rev range (compare Cargo.toml at v<prev> vs the release branch), run git log <old>..<new> in the local vite-task checkout, and read vite-task's CHANGELOG.md at the new commit for wording. Promote user-visible upstream changes into Features / Fixes with [vite-task#N](https://github.com/voidzero-dev/vite-task/pull/N) links, crediting the upstream PR author (gh pr view N --repo voidzero-dev/vite-task --json author). Cross-repo link format is [vite-task#N] / [vite#N], not [owner/repo#N].
- New Contributors: copy from
generate-notes, exclude bots (renovate[bot], voidzero-guard[bot], github-actions[bot]), list as inline @mentions.
Bundled Versions table
vite and rolldown are built from pinned commits, so link the commit. The npm-installed tools link to npmx.dev.
Style rules
- No em dashes or en dashes anywhere in the title or body. Use commas, colons, or parentheses.
- The Upgrade section is a
vp upgrade code block.
- Apply via a temp file, never a heredoc (heredoc quoting can escape backticks inside the table and break rendering):
gh pr edit <PR#> --repo voidzero-dev/vite-plus --title "release: vX.Y.Z: <theme>" --body-file /tmp/pr-body.md
Validate before finishing
BODY=$(gh pr view <PR#> --repo voidzero-dev/vite-plus --json body -q '.body')
echo "$BODY" | grep -oE 'voidzero-dev/vite-plus/pull/[0-9]+' | sort -u | wc -l
echo "$BODY" | grep -oE '(vite-plus|vite-task)/pull/[0-9]+' | sort | uniq -d
echo "$BODY" | grep -nE '[—–]'
echo "$BODY" | grep -c '\\`'
echo "$BODY" | tail -1
4. Optional: preview build smoke test (before merging)
This step is optional and runs after the changelog (step 3) is complete and before merging (step 6). Ask the release manager whether to run it; do not add the label or skip the step on your own. Suggest running it when the release carries risky changes (migrate/create behavior, package-manager or install-path changes, native binding changes). If the release manager approves, read and follow vite-plus-ecosystem-ci/.github/TESTING.md first, then validate against the full ecosystem-ci catalog (every runnable fork), not a single project.
If the release manager says yes:
-
Add the preview-build label to the release PR to publish installable 0.0.0-commit.<head-sha> builds through the registry bridge:
gh pr edit <PR#> --repo voidzero-dev/vite-plus --add-label "preview-build"
-
Wait for the Publish preview build workflow run on the release branch to succeed (it packs the built package directories and registers the commit with the registry bridge, then comments the build info on the PR).
-
Verify the build against every runnable project in the catalog with the test-pkg-pr-new-migrate skill: it runs vp migrate from the preview commit against each local checkout, with dependencies resolved through the registry bridge. Report the outcome to the release manager before moving on.
The catalog. The smoke-test catalog and the local-setup rules live in the ecosystem-ci org: vite-plus-ecosystem-ci/.github/TESTING.md, with the machine-readable list in ecosystem.json (each fork's upstream, tracked branch, and package manager). Run every runnable fork; filter ecosystem.json with jq to skip non-JS other repos and any the release manager says to ignore. Forks pinned to the immediately previous release exercise a real upgrade rather than a no-op.
Mandatory: open any test PR against the vite-plus-ecosystem-ci fork, never the upstream repo. gh pr create inside a fork defaults its base repo to the parent (upstream), so pass --repo vite-plus-ecosystem-ci/<repo> (or run gh repo set-default vite-plus-ecosystem-ci/<repo> first). See TESTING.md.
test-pkg-pr-new-migrate needs a local checkout on the fork's tracked branch (often not the default branch, e.g. vue-core tracks minor). Clone under one directory so the whole test environment cleans up in one step:
repo=<repo>; branch=<tracked-branch>
git clone git@github.com:vite-plus-ecosystem-ci/$repo.git ~/git/github.com/vite-plus-ecosystem-ci/$repo
git -C ~/git/github.com/vite-plus-ecosystem-ci/$repo checkout "$branch"
The .github repo also ships scripts/setup-local.sh <repo> (or --all), which does the clone, tracked-branch checkout, remotes, and fork base-repo pinning from the manifest in one step.
Validate in the project's own CI (optional, deeper). Beyond the local vp migrate, exercise the prerelease in the fork's real CI by opening a draft PR on the fork, following "Smoke-test via a fork PR" in TESTING.md: branch update-vite-plus-prerelease-test-<version> synced from source, apply the upgrade, open a draft PR on the fork (never upstream) assigned to the release manager, then watch its checks for upgrade-related failures. Some projects' CIs install with a non-standard tool that cannot resolve preview builds through the bridge .npmrc (e.g. cnpmcore's utoo), so check the install step before trusting fork-CI results.
The workflow triggers only on the labeled event, not on new pushes. To rebuild after the head moves (e.g. after a step 5 merge from main), remove and re-add the label (this cancels an in-flight build for the branch). A stale build whose diff to the new head is test-only is still valid for smoke testing; ask before re-triggering.
Example (v0.2.2, PR #2016)
Changelog complete, CI green, release manager approved the smoke test. A build existed for head 06708538; the head had since moved by a test-only merge from main, so that build was still valid and was not re-triggered.
Here the target was vibe-dashboard main (a vite-plus-ecosystem-ci fork, pnpm monorepo on vite-plus 0.2.1, i.e. the previous release), so the run exercised the common upgrade path. Pass the release PR number; the harness resolves it through the bridge to the latest published immutable commit and prints the resolved SHA (confirm it matches the build you expect). Pass a full commit SHA instead only to pin a specific build when several have been published:
.github/scripts/test-pkg-pr-new-migrate.sh 2016 ~/git/github.com/vite-plus-ecosystem-ci/vibe-dashboard --no-interactive
A passing run looks like:
◇ Updated . to Vite+ 0.0.0-commit.06708538...
• Dependencies:
vite-plus 0.2.1 → 0.0.0-commit.06708538...
vite → 8.1.2
✓ Dependencies installed in 5.7s
Migration worktree changes (.npmrc force-staged so it survives .gitignore):
A .npmrc # bridge registry written by vp migrate
M package.json / pnpm-workspace.yaml / pnpm-lock.yaml
Found 1 version of @voidzero-dev/vite-plus-core
Found 1 version of vite-plus
Found 1 version of vitest
Pass criteria: the upgrade lands on the 0.0.0-commit.<sha> build, the install succeeds through the bridge registry, and each of @voidzero-dev/vite-plus-core, vite-plus, and vitest resolves to exactly ONE version (vitest at the bundled upstream version). Multiple or stale versions mean the migration or install is broken: stop and treat it as a release blocker. Report the outcome to the release manager either way.
5. Release-branch CI
Fixes for CI failures go through a separate PR to main, never as commits on the release branch (the binding sync in step 2 is the sole exception). After the fix PR merges:
git checkout release/vX.Y.Z && git merge origin/main --no-edit && git push origin release/vX.Y.Z
Do not assume the merge brought in only the fix PR: main may have accumulated several. Before merging, list everything that will come in with git log origin/release/vX.Y.Z..origin/main --oneline, then add a changelog entry for every newly included PR and rerun the step 3 validation (its missing/extra diff against generate-notes catches any entry you missed).
Known release-branch-only failure modes:
- Binding version drift:
CLI E2E test fails its no-unexpected-changes guard with a diff flipping version strings in binding/index.cjs. Fix: step 2.
- Unpublished-version installs: the release branch carries version
X.Y.Z before it exists on npm. Snap fixtures that run a real package-manager install (vp create / vp migrate followed by install) fail with ERR_PNPM_NO_MATCHING_VERSION or bun/yarn failed to resolve for vite-plus@X.Y.Z / @voidzero-dev/vite-plus-core@X.Y.Z. Fix: pin "VP_VERSION": "<published version>" in the fixture's steps.json env (see #2017); the snapshot normalizer rewrites versions to <semver>, so output does not change. Any new install-performing fixture must ship with this pin or it will break the next release.
- Registry flakes: registry-bound fixtures can time out (about 50s) and look like regressions. Rerun before diagnosing, and never commit a
[timeout] snapshot.
6. Merge
Merging the release PR is the release trigger. Before merging confirm: CI green, changelog validated, binding synced, and (if used) the preview build verified.
7. Automated release pipeline (what happens after merge)
release.yml runs on the main push because packages/cli/package.json changed:
check: compares the local version against unpkg.com/vite-plus@latest; everything below is skipped unless it changed.
build-rust: full multi-platform build.
request-approval: posts an approval request to the releases Discord channel, and the Release job waits on the release GitHub environment. A person with environment approval rights must approve the run in the Actions UI.
Release: publishes the platform-native CLI packages (@voidzero-dev/vite-plus-cli-<platform>, via packages/cli/publish-native-addons.ts) and then @voidzero-dev/vite-plus-core and vite-plus to npm (--tag latest), creates the vX.Y.Z GitHub release (draft, with installer/binary assets, then undrafted). The generated body has only Published Packages and Installation sections.
publish-docker: multi-arch toolchain image to ghcr.io/voidzero-dev/vite-plus, after npm publish (the image installs vp from npm).
discord-notify: announces to Discord with a link to the release.
8. Post-release
-
Polish the GitHub release notes (ask first): the auto-created release body has only Published Packages and Installation. Build the polished notes from the final release PR body:
-
Drop the Release vite-plus vX.Y.Z: ... opener line (the release title carries it) and the closing --- / Merging this PR ... boilerplate.
-
Keep every changelog section through Full Changelog unchanged.
-
Append the generated Published Packages and Installation sections, and end Installation with a Docker usage block (keep the explanation to one short sentence):
**Docker:**
```bash
docker run --rm -it -v "$PWD:/app" -w /app ghcr.io/voidzero-dev/vite-plus:X.Y.Z vp build
```
Run any `vp` command without installing it; see the [Docker guide](https://viteplus.dev/guide/docker) for more.
-
Present the draft to the release manager and apply only after approval. Then retitle the release to match the PR theme and apply via a notes file:
gh release edit vX.Y.Z --repo voidzero-dev/vite-plus \
--title "vite-plus vX.Y.Z: <theme>" --notes-file /tmp/release-notes.md
-
Re-run the step 3 validation greps against the live release body, plus grep -c 'Merging this PR' (must be 0).
-
Verify:
npm view vite-plus version
npm view @voidzero-dev/vite-plus-core version
npm view @voidzero-dev/vite-plus-cli-darwin-arm64 version
npm view vite-plus dist-tags.latest
vp upgrade && vp --version
docker run --rm ghcr.io/voidzero-dev/vite-plus:X.Y.Z vp --version
vp upgrade reporting Already up to date (X.Y.Z) also passes. Caveat: vp upgrade exists only on standalone-installer (~/.vite-plus) installs; if the release manager's vp is managed another way (e.g. mise), vp upgrade is missing and vp update is not a substitute (it runs pnpm update on the current project, so never run it inside the vite-plus checkout). In that case rely on the npm/GHCR checks plus the in-container vp --version. The Docker check must run vp --version inside the image, not just pull it: the output must report vp vX.Y.Z. If that output does not list bundled tool versions, inspect the installed image package tree under ~/.vite-plus/X.Y.Z/node_modules/.pnpm and confirm the bundled tool packages and versions match the changelog's Bundled Versions table. If no local Docker daemon is running, confirm the publish-docker job succeeded and the GHCR manifest exists, then still run the in-container check once a daemon is available:
TOKEN=$(curl -s "https://ghcr.io/token?scope=repository:voidzero-dev/vite-plus:pull" \
| python3 -c "import json,sys; print(json.load(sys.stdin)['token'])")
curl -sI -H "Authorization: Bearer $TOKEN" \
-H "Accept: application/vnd.oci.image.index.v1+json" \
"https://ghcr.io/v2/voidzero-dev/vite-plus/manifests/X.Y.Z" | head -1
-
Announce on Discord (concise format only; do not produce a shorter variant). Keep it tight: every line is a single short phrase, no heading-plus-explanation sentences, the whole message around 20 lines. No PR links, no tables, no per-entry credits, no em dashes. One emoji per line by theme (:lock: security, :zap: performance, :sparkles: DX, :seedling: scaffolding, :hammer_and_wrench: tooling, :package: deps). Use Upstream Upgrades for dependency/tool version bumps, not Highlights; a security fix caused by a dependency bump can still have a Highlight focused on the vulnerability, and that line must link the CVE/GHSA/advisory when one exists. Include Also in this release only when there are meaningful secondary user-facing items, and omit the whole section for a narrow hotfix.
:viteplus: **vite-plus vX.Y.Z is out** :tada:
<One short theme line.>
**Highlights**
:emoji: one short user-impact line per highlight
(1-5 lines; link CVE/GHSA/advisory text for security items)
**Upstream Upgrades**
:package: tool `old` -> `new`
(omit if no upstream version changes worth naming)
**Also in this release**
- 2-6 short bullets, no PR links or credits
(omit this whole section when there are no meaningful secondary user-facing items)
**Bundled versions**
vite `X`, rolldown `X`, tsdown `X`, vitest `X`, oxlint `X`, oxlint-tsgolint `X`, oxfmt `X`
**Upgrade**: `vp upgrade`
Full notes: <https://github.com/voidzero-dev/vite-plus/releases/tag/vX.Y.Z>
Thanks to new contributors [@a](https://github.com/a), [@b](https://github.com/b) :wave:
The release-notes URL stays in <angle brackets> to suppress the embed; a blog post link (if any) goes bare so it unfurls. Lead the header with the server custom emoji :viteplus: (before the bold title, since it is a custom emoji). Link contributors as [@user](https://github.com/user) because Discord does not auto-link a bare GitHub handle. Keep the whole message user-facing: exclude vite-plus's own tooling/CI work.
Never post to Discord yourself. Save the draft to a file and post it as a comment on the release PR wrapped in a fenced ```markdown block, so the @mentions do not ping anyone on GitHub, the emoji shortcodes stay literal, and any team member can copy-paste it into Discord. After the release manager approves the Discord draft, proceed directly to step 9; do not wait for another prompt or treat the skill update as optional.
9. Update this skill (post-release)
After the release ships and the Discord announcement draft is approved, review the session for durable learnings and fold them into this file. Then ask for approval before pushing or opening a PR.
- Capture only what generalizes: a step whose instructions drifted from what actually worked, a gotcha or corrected mistake, or a command/flag that was wrong. Write it as general guidance, with no release-specific versions, project names, PR numbers, or one-off examples.
- Be surgical: change only what was wrong or missing; do not reword content that was already correct. If nothing generalizes, make no change.
- This skill lives on
main, so do not push to main directly: make the edit on a branch, commit it, present the local diff and summary to the release manager, and only push or open a docs(skill): ... PR after explicit approval.
Checklist