---
title: "release-it configuration"
canonical_url: "https://actions.xovajs.com/en/guides/release-it"
---
# 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`.

<code-group>

```sh [pnpm]
pnpm add --save-dev --save-exact release-it@21.1.3 @release-it/conventional-changelog@12.0.2
```

```sh [npm]
npm install --save-dev --save-exact release-it@21.1.3 @release-it/conventional-changelog@12.0.2
```

</code-group>

## 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`.

```json
{
  "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`.

<code-group>

```sh [pnpm]
pnpm exec release-it 0.4.0 --ci --dry-run
```

```sh [npm]
npm exec -- release-it 0.4.0 --ci --dry-run
```

</code-group>

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

| 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](https://github.com/xova-dev/actions/blob/main/config/npm-publish.mjs). 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](https://actions.xovajs.com/en/guides/publication-results).


## Sitemap

See the full [sitemap](https://actions.xovajs.com/sitemap.md) for all pages.
