Esta página se muestra en inglés. Una traducción al español está en curso.
ConfigsMay 17, 2026·2 min de lectura

release-it — Automated Versioning and Package Publishing

A CLI tool that automates version bumping, changelog generation, Git tagging, and publishing to npm or GitHub Releases with interactive or CI-driven workflows.

Listo para agents

Este activo puede ser leído e instalado directamente por agents

TokRepo expone un comando CLI universal, contrato de instalación, metadata JSON, plan según adaptador y contenido raw para que los agents evalúen compatibilidad, riesgo y próximos pasos.

Native · 98/100Política: permitir
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Established
Entrada
release-it Overview
Comando CLI universal
npx tokrepo install a5123bcf-51eb-11f1-9bc6-00163e2b0d79

Introduction

release-it automates the repetitive tasks of software releases: bumping the version in package.json, generating a changelog, creating a Git tag, pushing to the remote, and publishing to npm or creating a GitHub Release. It works interactively for manual releases or fully automated in CI pipelines.

What release-it Does

  • Bumps version numbers following semantic versioning (major, minor, patch)
  • Creates annotated Git tags and pushes them to the remote repository
  • Generates changelogs from conventional commits or custom templates
  • Publishes packages to npm, GitHub Packages, or other registries
  • Creates GitHub or GitLab releases with auto-generated release notes

Architecture Overview

release-it is a Node.js CLI built on a plugin architecture. The core orchestrates a release pipeline: version determination, file updates, Git operations, and publishing. Each step is handled by internal plugins (npm, git, github, gitlab) or community plugins. Hooks allow running arbitrary commands at any lifecycle point.

Self-Hosting & Configuration

  • Install as devDependency: npm install -D release-it
  • Create .release-it.json or add release-it key to package.json
  • Configure git.requireCleanWorkingDir and git.push behavior
  • Set npm.publish to true/false depending on registry needs
  • Add hooks for pre:bump, after:bump, before:release lifecycle events

Key Features

  • Plugin system for extending with changelog generators and custom publishers
  • Interactive prompts showing each step before execution
  • Monorepo support via workspaces plugin for coordinated releases
  • Conventional Changelog plugin for automatic CHANGELOG.md generation
  • Pre-release versions (alpha, beta, rc) with increment strategies

Comparison with Similar Tools

  • semantic-release — fully automated via CI, no interactive mode, opinionated
  • changesets — monorepo-focused with PR-based version management
  • standard-version — deprecated predecessor with similar scope
  • np — npm-focused publishing helper without Git release features

FAQ

Q: Can I use release-it in a CI pipeline without prompts? A: Yes, use the --ci flag or set ci: true in configuration to skip all interactive prompts.

Q: How does it determine the next version? A: By default it prompts you. With conventional-changelog plugin, it infers from commit messages (feat = minor, fix = patch, BREAKING = major).

Q: Does it support monorepos? A: Yes, via the @release-it/bumper plugin or workspaces configuration for coordinated multi-package releases.

Q: Can I run custom scripts during the release? A: Yes, use hooks in config: hooks.before:init, hooks.after:bump, hooks.after:release for arbitrary shell commands.

Sources

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados