release-it configuration
Install release-it in your project
Pin release-it and the Conventional Changelog plugin. Use Node ^22.22.2, ^24.15.0 or >=26.0.0.
pnpm add --save-dev --save-exact release-it@21.1.3 @release-it/conventional-changelog@12.0.2
npm install --save-dev --save-exact release-it@21.1.3 @release-it/conventional-changelog@12.0.2
Pin the preset
In the root .release-it.json, replace XOVA_ACTIONS_SHA with the full SHA of a commit that passed CI in xova-dev/actions.
{
"extends": ["github:xova-dev/actions/config#XOVA_ACTIONS_SHA"]
}
For local testing, use the absolute path to this checkout’s config/. For a subpackage, run the CLI in the package directory and set git.tagName if needed, e.g. widget@${version}.
Release a version
Replace 0.4.0 with the target version and preview the notes with --dry-run.
pnpm exec release-it 0.4.0 --ci --dry-run
npm exec -- release-it 0.4.0 --ci --dry-run
Before pushing, check the following.
- The preview shows the intended version and release notes, including any migration instructions.
- The branch is clean, tracks the intended remote and can push commits and tags.
- The consumer publishes on tag push. When upgrading the old preset, remove local GitHub Release overrides and credential hooks.
Rerun without --dry-run. release-it runs project hooks, commits the version and changelog, creates the tag and pushes. The Git push needs no GitHub API token.
Configure npm publication in CI
| Setting | Publication behavior |
|---|---|
npm.verify-command | Check and build the clean candidate. Run required builds explicitly because packing disables lifecycle scripts. |
npm.package-manager | Defaults to npm. Choose pnpm to expand catalog: or workspace: dependencies. |
npm.tarball-verify-command | Optional. Test the archive at the absolute path in TARBALL. Omit for identity and consistency checks only. |
npm.dist-tag | Stable versions default to latest, prereleases to next. Prereleases cannot use latest. A dist-tag must not parse as a SemVer range. |
CI uses locked release-it 21.1.3, OIDC-capable npm 11.5.1+ and the isolated publication preset. The built-in npm publisher receives the same file after verification of the archived manifest, final source and SHA-256.
An active dry-run in the environment or .npmrc blocks publication. After handoff to npm, wait for confirmation. See the publication receipt.
Deploy a site or Worker
A site built on main can deploy as soon as its build succeeds. To tie deployment to a stable release, make it depend on both jobs (needs: [build_site, publish] in the monorepo example) and pass the tag as release-tag. Monorepo workflows
npm publication results
Check the package name, version and tarball digest in the publish job summary or the same run’s publication-result.json. The receipt still records npm success if the GitHub Release or docs deployment later fails.