Releases are cut from main via a GitHub Actions workflow. Only maintainers with repository admin (or the vc-ci bot) can trigger a release.
- Go to Actions → Publish in the repository.
- Click Run workflow.
- Choose inputs:
- Release type:
auto(default) derives the semver bump from the conventional commits since the last tag. Pickpatch,minor, ormajoronly to force a specific bump. - Prerelease channel:
none— stable release (publishes to npm with taglatest).alpha,beta, orrc— prerelease (publishes with matching npm tag).
- Dry-run: if true, runs preflight + release-it in dry-run mode (no commit, no push, no publish). Use for verification.
- Release type:
- Click Run workflow.
The workflow:
- Runs preflight (
yarn check) and builds all packages. - Bumps versions in all workspace manifests and updates the lockfile.
- If stable: updates
CHANGELOG.mdwith an entry consolidating all commits since the previous stable tag (including those that landed in intermediate alpha/beta releases). - If prerelease: leaves
CHANGELOG.mduntouched. - Commits the release bump (
release: v<version>), creates an annotated tag (v<version>), and pushes both tomain. - Publishes the updated packages to npm with the appropriate dist-tag.
- Verifies the published dist-tags.
With release-type: auto you don't pick the bump — @release-it/conventional-changelog
computes it from the commit types since the last vX.Y.Z tag:
- any
BREAKING CHANGE/!→ major - any
feat→ minor - otherwise (
fix,perf, …) → patch
Breaking changes must be marked in the commit title. Merges are squashed, so the
PR title becomes the only commit message and the PR body (and any BREAKING CHANGE:
footer) is dropped. A breaking change therefore has to use the ! form in the PR
title — feat(x)!: … or fix(x)!: … — or auto will under-bump it to a minor/patch.
Typical paths through the workflow, assuming the repo is currently at 2.0.0-alpha.33.
Work accumulates in main via PRs. When ready to publish a dev preview:
- Actions → Publish → Run workflow
release-type: patch,prerelease: alpha,dry-run: false- Result:
2.0.0-alpha.34, npm dist-tagalphaupdated.CHANGELOG.mdunchanged.
Consumers:
npm install @vc-shell/framework@alphaRepeat as many times as needed — alpha.35, alpha.36, etc. Each run picks up all commits landed since the previous alpha.
When the alpha line is stable enough to invite broader testing:
- Actions → Publish → Run workflow
release-type: patch,prerelease: beta,dry-run: false- Result:
2.0.0-beta.0, npm dist-tagbetacreated.alphadist-tag stays at its last alpha version.
Subsequent betas: patch + beta again → 2.0.0-beta.1, beta.2, etc.
Same pattern with prerelease: rc → 2.0.0-rc.0, rc.1, etc.
When ready to ship:
- Actions → Publish → Run workflow
release-type: minor(or whatever final bump you want),prerelease: none,dry-run: false- Result:
2.0.0(clean, no suffix), npm dist-taglatestupdated. CHANGELOG.mdgets a new section consolidating every commit from the previous stable tag toHEAD— including everything that shipped in alpha/beta/rc along the way.
After stable, the next alpha cycle starts from the next version (e.g. 2.1.0-alpha.0).
PR previews (automatic, per commit, dist-tag pr-<N>) and prereleases (manual, incremented counter, dist-tag alpha/beta/rc) are separate channels:
| PR preview | alpha/beta/rc | |
|---|---|---|
| Trigger | Automatic on every PR push | Manual via Publish workflow |
| Version | <current>-pr<N>.<sha7> |
<next>-alpha.N (counter increments) |
| npm tag | pr-<N> (persists; manual sweep) |
alpha / beta / rc (permanent) |
| Audience | Maintainer debug loop | External testers / CI of downstream apps |
| CHANGELOG | Skipped | Skipped |
See CONTRIBUTING.md — Testing PR Previews for the PR flow.
Releases rely on Conventional Commits. PR titles are validated by the PR Title workflow on every pull request. Detailed conventions: .github/COMMIT_CONVENTION.md.
Commit types that surface in CHANGELOG.md (Angular preset):
feat→ Featuresfix→ Bug Fixesperf→ Performance Improvements
For stable consolidation (2.x.y without prerelease suffix), changelog generation now keeps all conventional commit types from the stable baseline range (including chore, docs, test, ci, build, style, refactor, revert) so alpha/beta/rc work is not lost.
All release-managed workspace packages share the same version:
framework(@vc-shell/framework)cli/api-client(@vc-shell/api-client-generator)cli/create-vc-app(@vc-shell/create-vc-app)cli/migrate(@vc-shell/migrate)cli/vc-app-skill(@vc-shell/vc-app-skill)configs/vite-config(@vc-shell/config-generator)configs/ts-config(@vc-shell/ts-config)packages/mf-config(@vc-shell/mf-config)packages/mf-host(@vc-shell/mf-host)packages/mf-module(@vc-shell/mf-module)
Before triggering the workflow in production, you can simulate locally:
yarn release:dry # simulates stable release
PRERELEASE_CHANNEL=alpha yarn release:dry # simulates alpha release (no CHANGELOG)
RELEASE_PREFLIGHT_NO_CACHE=1 yarn release:dry # force full preflight (ignore cache)Output shows what release-it would do without making changes.
yarn release:dry caches the last successful preflight run in .yarn/.cache/release-preflight.json and skips repeated checks when git state and inputs are unchanged.
To regenerate CHANGELOG.md from full git history (e.g., after cleaning up stale alpha entries):
yarn generate:changelogsThis regenerates:
- Root
CHANGELOG.md(all commits) - Each managed package
CHANGELOG.mdusing--commit-path
Use when bootstrapping or auditing.
The release job of the Publish workflow uses secrets.REPO_TOKEN (bot account vc-ci, repository admin role) for pushing the release commit and tag to main. This token bypasses the branch protection ruleset via the Repository admin role.
Publishing to npm uses Trusted Publishing (OIDC) — no NPM_TOKEN is involved. The job declares id-token: write, installs an OIDC-capable npm, and npm publish mints a one-shot credential from GitHub's OIDC provider and attaches a provenance attestation. Because npm allows only one trusted publisher per package (matched by the caller workflow's filename), all publishing — PR previews and releases — lives in a single workflow file, publish.yml, which is the one filename each package must register as a Trusted Publisher on npmjs.com; see .github/workflows/README.md → Trusted Publishing. There is no NPM_TOKEN in the repository at all: there is deliberately no automated dist-tag cleanup (that would need a rotating npm write token, which npm caps at a 90-day lifetime), so stale pr-<N> preview tags are swept manually by a maintainer when needed.