Xova
Guides

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

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

Before pushing, check the following.

  1. The preview shows the intended version and release notes, including any migration instructions.
  2. The branch is clean, tracks the intended remote and can push commits and tags.
  3. 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

SettingPublication behavior
npm.verify-commandCheck and build the clean candidate. Run required builds explicitly because packing disables lifecycle scripts.
npm.package-managerDefaults to npm. Choose pnpm to expand catalog: or workspace: dependencies.
npm.tarball-verify-commandOptional. Test the archive at the absolute path in TARBALL. Omit for identity and consistency checks only.
npm.dist-tagStable 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.

Copyright © 2026