Xova
Guides

Releasing

Before release

Preview the version and release notes with release-it and --dry-run. If an upgrade requires code or configuration changes, describe them in the changelog.

npm Trusted Publishing

Register the GitHub owner, repository, filename of the workflow calling publish.yml and matching GitHub environment with npm. In package.json, repository must match the public repository, including case.

For a subpackage, point setup.working-directory at the package directory. You can also record its location in package.json with repository.directory. npm.tag-prefix defaults to v. Set it only if your tags use another prefix, such as widget@.

A root package uses the default working directory. See the monorepo example for a package subdirectory, an isolated installation test and package-scoped tags.

Release sequence

  1. Push the tag. From a clean worktree with push access to the tracked remote, rerun release-it without --dry-run. It commits the version and changelog, creates the tag and pushes.
  2. Verify the commit. Run full project checks on the tagged SHA or reuse a successful full CI run for it. CHANGELOG.md must contain exactly one nonempty section for the version.
  3. Publish to npm (if configured). CI packs with pnpm or npm. If tarball-verify-command is set, it tests the archive at TARBALL. CI publishes that archive using OIDC.
  4. Create the GitHub Release. Use the tagged changelog and verify any configured assets before publication. If npm is configured, wait for it to succeed.

Protect release tags and use tag pushes as the only automatic publication trigger. To update a site alongside a stable release, see deployment policy.

GitHub Release assets

  1. For notes alone, set "github-release": {}. Notes come from the tracked CHANGELOG.md in setup.working-directory. Tags default to v plus SemVer. Standalone releases can set github-release.tag-prefix. npm projects inherit npm.tag-prefix.
  2. Use check.yml with task: artifact, artifact.kind: release-assets and the default component app. Custom jobs can sign files and upload their directory with artifact-pack and kind: release-assets. List the top-level filenames in github-release.assets, preserving case.
  3. In the same run, pass the returned artifact-id to publish.yml as release-artifact-id. The workflow verifies the source and digest, uploads to a draft, then checks GitHub’s SHA-256 values before making the Release public. Omit release-artifact-id when there are no assets.

An explicit list, including [], must match the published assets exactly. If an npm project omits the list, reruns preserve assets the project added. See the downloads tag workflow.

Failure recovery

If the npm outcome is uncertain, verify the registry and provenance first. A missing receipt or temporary 404 does not justify republishing.

SymptomNext action
Local release-it stopped halfwayInspect the worktree, local and remote tags, and their SHAs. If the tag was pushed, inspect the original run and keep the tag and version.
Source, repository identity or tarball verification failedCorrect and revalidate the candidate. Match package.json repository to the actual GitHub repository, including case.
A check failed transientlySelect Re-run failed jobs on the original run.
npm succeeded, GitHub Release failedRerun only the Release job and resume its matching draft. For manual recovery, verify the package name, version, tag SHA and each asset digest. Keep the original notes and prerelease flag. Stop on a conflicting Release.
Receipt missing or upload failedCheck npm logs, registry and provenance. Once publication is confirmed, recover only the missing GitHub Release. See npm publication results.
GitHub Release succeeded, docs deployment failedRerun deployment with the original artifact. If it expired, confirm the stable tag and SHA, rebuild from that SHA with a compatible toolkit version and deploy in the same run.
Copyright © 2026