release-it vs np vs auto vs lerna vs semantic-release vs standard-version
Automating Versioning and Releases in JavaScript Projects
release-itnpautolernasemantic-releasestandard-versionSimilar Packages:

Automating Versioning and Releases in JavaScript Projects

These six tools handle version bumps, changelog generation, and publishing for JavaScript packages, but they differ in automation levels and target workflows. semantic-release and auto focus on fully automated CI pipelines, removing human interaction from the release process. np and release-it offer interactive or configurable CLI workflows for manual triggers. lerna specializes in managing releases across monorepos with multiple packages. standard-version provides a lightweight way to bump versions and generate changelogs based on commit conventions without enforcing a full publish pipeline.

Npm Package Weekly Downloads Trend

3 Years

Github Stars Ranking

Stat Detail

Package
Downloads
Stars
Size
Issues
Publish
License
release-it519,6539,073383 kB912 days agoMIT
np80,2067,712120 kB4a month agoMIT
auto02,49955.2 kB164a year agoMIT
lerna036,038609 kB2977 days agoMIT
semantic-release024,113128 kB4072 months agoMIT
standard-version07,986136 kB309-ISC

Automating Versioning and Releases in JavaScript Projects

Managing releases involves more than just running npm publish. You need to bump versions, generate changelogs, tag git commits, and notify users. The tools auto, lerna, np, release-it, semantic-release, and standard-version all solve this problem, but they approach it from different angles. Let's compare how they handle automation, configuration, and real-world workflows.

๐Ÿค– Automation Model: CI-Only vs Interactive vs Hybrid

The biggest difference lies in who triggers the release. Some tools run only in Continuous Integration (CI), while others run on your local machine.

semantic-release is fully automated. It runs in CI, analyzes commits, and publishes without human input.

// semantic-release: .releaserc.json
{
  "branches": ["main"],
  "plugins": ["@semantic-release/commit-analyzer"]
}

auto is also CI-focused but uses PR labels to decide version bumps.

# auto: .autorc.yml
plugins:
  - npm
  - released

np is strictly interactive. You run it locally, and it prompts you for confirmation.

# np: CLI command
npx np

release-it supports both modes. You can run it locally or in CI with flags.

// release-it: .release-it.json
{
  "git": { "commit": true, "tag": true },
  "npm": { "publish": true }
}

lerna is often run in CI for monorepos but can be triggered locally.

// lerna: lerna.json
{
  "version": "independent",
  "command": { "publish": { "conventionalCommits": true } }
}

standard-version is a local tool. You run it to bump versions, then you commit manually.

// standard-version: package.json script
{
  "scripts": {
    "release": "standard-version"
  }
}

๐Ÿ› ๏ธ Configuration Style: Files vs CLI Flags

How you define rules varies from dedicated config files to package.json entries.

semantic-release uses a dedicated config file or package.json key.

// semantic-release: package.json
{
  "release": {
    "branches": ["+([0-9])?(.{+([0-9]),x}).x"]
  }
}

auto relies on .autorc files in JSON, YAML, or JS formats.

// auto: .autorc.js
module.exports = {
  "owner": "my-org",
  "repo": "my-repo"
};

np reads settings from package.json but relies mostly on prompts.

// np: package.json
{
  "np": {
    "yarn": true,
    "contents": "."
  }
}

release-it uses .release-it.json or similar config files.

// release-it: .release-it.json
{
  "hooks": {
    "before:init": ["npm test"]
  }
}

lerna requires a lerna.json root file for monorepo settings.

// lerna: lerna.json
{
  "packages": ["packages/*"],
  "version": "4.0.0"
}

standard-version configures behavior via package.json or CLI flags.

// standard-version: package.json
{
  "standard-version": {
    "skip": { "tag": true }
  }
}

๐Ÿ“ฆ Monorepo Support: Single vs Multiple Packages

Some tools handle multiple packages in one repo, while others expect a single package.

semantic-release handles monorepos but requires specific plugins per package.

// semantic-release: multi-package setup
// Each package needs its own .releaserc or config

auto supports monorepos by detecting multiple package.json files.

# auto: monorepo command
auto shipit --monorepo

np is designed for single packages. It does not support monorepos natively.

# np: single package only
npx np

release-it supports workspaces but requires manual configuration for multiple packages.

// release-it: workspaces config
{
  "npm": { "publish": true, "workspace": "packages/*" }
}

lerna is built specifically for monorepos. It manages linking and versioning together.

# lerna: publish all changed packages
lerna publish from-package

standard-version is single-package focused. Monorepos need custom scripts.

# standard-version: run per package
cd packages/a && npx standard-version

๐Ÿ“ Changelog Generation: Automatic vs Conventional

All tools can generate changelogs, but they differ in how they parse commit messages.

semantic-release generates changelogs automatically using conventional commits.

// semantic-release: plugin config
{
  "plugins": ["@semantic-release/changelog"]
}

auto generates notes based on PR labels and merge commits.

# auto: generate changelog
auto changelog

np relies on npm or external tools for changelogs during publish.

# np: no built-in changelog gen
# Usually paired with conventional-changelog-cli

release-it uses plugins to generate changelogs from git logs.

// release-it: changelog plugin
{
  "plugins": {
    "@release-it/conventional-changelog": { "preset": "angular" }
  }
}

lerna generates changelogs per package when using conventional commits.

// lerna: enable changelogs
{
  "command": { "version": { "conventionalCommits": true } }
}

standard-version is dedicated to generating changelogs based on commits.

# standard-version: run generation
npx standard-version

๐Ÿš€ CI/CD Integration: GitHub Actions vs Generic

Integration with pipelines determines how easily you can automate releases.

semantic-release has native plugins for GitHub, GitLab, and CircleCI.

# semantic-release: GitHub Actions
- name: Release
  run: npx semantic-release

auto integrates deeply with GitHub PR checks and releases.

# auto: GitHub Actions
- uses: intuit/auto@v10

np is not designed for CI. It requires interactive input.

# np: CI usage not recommended
# Requires manual trigger locally

release-it works in CI if you disable interactive prompts.

# release-it: CI script
- run: npx release-it --ci

lerna runs in CI to publish updated packages in a monorepo.

# lerna: CI publish
- run: npx lerna publish from-package --yes

standard-version runs in CI to bump versions, but publishing is manual.

# standard-version: CI version bump
- run: npx standard-version --dry-run

๐Ÿค Similarities: Shared Ground Between Release Tools

Despite their differences, these tools share common goals and standards.

1. ๐Ÿ“œ Conventional Commits Support

  • Most tools parse commit messages to decide version bumps.
  • Enables automatic Major, Minor, or Patch increments.
# Example: Commit message format
feat: add new login feature
fix: resolve timeout issue

2. ๐Ÿท๏ธ Git Tagging

  • All tools create git tags to mark release points.
  • Ensures you can revert or reference specific versions.
# Example: Git tag created
v1.2.3

3. ๐Ÿ“ฆ npm Publishing

  • All tools (except standard-version alone) can publish to npm.
  • Handles authentication and registry updates.
# Example: Publish command
npm publish

4. ๐Ÿ”’ Safety Checks

  • Most tools check for uncommitted changes or failed tests.
  • Prevents accidental releases of broken code.
# Example: Pre-check
npm test && git status

5. ๐Ÿ”Œ Plugin Ecosystems

  • semantic-release, auto, and release-it support plugins.
  • Allows integration with Slack, Sentry, or custom APIs.
// Example: Plugin usage
plugins: ['@semantic-release/slack']

๐Ÿ“Š Summary: Key Differences

Featureautolernanprelease-itsemantic-releasestandard-version
Primary UsePR Label AutomationMonorepo ManagementInteractive CLIConfigurable CLIFull CI AutomationLocal Version Bump
AutomationHigh (CI)High (CI/Local)Low (Local)Medium (Hybrid)High (CI)Low (Local)
MonorepoYesNative SupportNoConfigurablePlugin BasedManual
ChangelogAuto (PR Based)Auto (Commit Based)Manual/ExternalAuto (Plugin)Auto (Commit Based)Auto (Commit Based)
Config File.autorclerna.jsonpackage.json.release-it.json.releasercpackage.json

๐Ÿ’ก Final Recommendation

semantic-release is the top choice for teams wanting zero-touch releases in CI. It enforces discipline and removes human error from versioning.

auto is best for GitHub-heavy teams that want release notes driven by pull request labels rather than commit messages.

lerna remains the king of monorepos. If you have multiple packages in one repo, this is the standard tool.

np is perfect for solo developers or small teams who want a safe, interactive local release process.

release-it offers the most flexibility for custom workflows that need both local and CI support.

standard-version is ideal for projects that just want changelogs and version bumps without automated publishing.

Final Thought: Pick the tool that matches your team's workflow. If you want full automation, go with semantic-release or auto. If you need monorepo support, choose lerna. If you prefer manual control, np or release-it will serve you well.

How to Choose: release-it vs np vs auto vs lerna vs semantic-release vs standard-version

  • release-it:

    Choose release-it if you need a highly configurable release tool that supports both interactive and automated modes. It suits projects that require custom hooks, git tags, and npm publishing steps without committing to a fully opinionated CI-only workflow.

  • np:

    Choose np if you prefer an interactive CLI experience for single-package releases where you manually trigger the process. It is perfect for developers who want to run tests, bump versions, and publish in one local command with safety checks.

  • auto:

    Choose auto if your team uses GitHub or GitLab extensively and wants to determine version bumps via pull request labels. It is ideal for organizations that want release notes generated automatically based on PR metadata without manual version input.

  • lerna:

    Choose lerna if you are managing a monorepo with multiple packages that need coordinated versioning and publishing. It is the standard choice for linking dependencies between packages in a single repository and handling independent or fixed version modes.

  • semantic-release:

    Choose semantic-release if you want a fully automated release pipeline triggered by commits in your CI environment. It is best for teams that enforce conventional commits and want to eliminate manual versioning steps entirely.

  • standard-version:

    Choose standard-version if you need a simple tool to bump versions and generate changelogs locally based on commit messages. It works well for projects that want conventional changelogs without the complexity of a full automated publishing system.

README for release-it

Release It! ๐Ÿš€

๐Ÿš€ Generic CLI tool to automate versioning and package publishing-related tasks:

Use release-it for version management and publish to anywhere with its versatile configuration, a powerful plugin system, and hooks to execute any command you need to test, build, and/or publish your project.

Action Status npm version

Are you using release-it at work? Please consider sponsoring me!

Installation

Although release-it is a generic release tool, most projects use it for projects with npm packages. The recommended way to install release-it uses npm and adds some minimal configuration to get started:

npm init release-it

Alternatively, install it manually, and add the release script to package.json:

npm install -D release-it
{
  "name": "my-package",
  "version": "1.0.0",
  "scripts": {
    "release": "release-it"
  },
  "devDependencies": {
    "release-it": "^21.0.0"
  }
}

Usage

Run release-it from the root of the project using either npm run or npx:

npm run release
npx release-it

You will be prompted to select the new version, and more prompts will follow based on your configuration.

Yarn & pnpm

Monorepos

Using a monorepo? Please see this monorepo recipe.

Global Installation

Per-project installation as shown above is recommended, but global installs are supported as well:

  • From npm: npm install -g release-it
  • From Homebrew: brew install release-it

Containerized

Use Release It! - Containerized to run it in any environment as a standardized container without the need for a Node environment. Thanks Juan Carlos!

Videos, articles & examples

Here's a list of interesting external resources:

Want to add yours to the list? Just open a pull request!

Configuration

Out of the box, release-it has sane defaults, and plenty of options to configure it. Most projects use a .release-it.json file in the project root, or a release-it property in package.json.

Here's a quick example .release-it.json:

{
  "$schema": "https://unpkg.com/release-it@20/schema/release-it.json",
  "git": {
    "commitMessage": "chore: release v${version}"
  },
  "github": {
    "release": true
  }
}

โ†’ See Configuration for more details.

Interactive vs. CI mode

By default, release-it is interactive and allows you to confirm each task before execution:

By using the --ci option, the process is fully automated without prompts. The configured tasks will be executed as demonstrated in the first animation above. In a Continuous Integration (CI) environment, this non-interactive mode is activated automatically.

Use --only-version to use a prompt only to determine the version, and automate the rest.

Latest version

How does release-it determine the latest version?

  1. For projects with a package.json, its version will be used (see npm to skip this).
  2. Otherwise, release-it uses the latest Git tag to determine which version should be released.
  3. As a last resort, 0.0.0 will be used as the latest version.

Alternatively, a plugin can be used to override this (e.g. to manage a VERSION or composer.json file):

Add the --release-version flag to print the next version without releasing anything. If no next version is available, it prints nothing and exits successfully.

Git

Git projects are supported well by release-it, automating the tasks to stage, commit, tag and push releases to any Git remote.

โ†’ See Git for more details.

npmjs.com Releases

As of July 2025, GitHub and GitLab CI workflows can now use npm's Trusted Publishing OpenID Connect (OIDC) integration for secure, token-free publishing from CI/CD. This eliminates long-lived tokens and automatically generates provenance attestations. See docs/npm.md for details.

GitHub Releases

GitHub projects can have releases attached to Git tags, containing release notes and assets. There are two ways to add GitHub releases in your release-it flow:

  1. Automated (requires a GITHUB_TOKEN)
  2. Manual (using the GitHub web interface with pre-populated fields)

โ†’ See GitHub Releases for more details.

GitLab Releases

GitLab projects can have releases attached to Git tags, containing release notes and assets. To automate GitLab releases:

โ†’ See GitLab Releases for more details.

Changelog

By default, release-it generates a changelog, to show and help select a version for the new release. Additionally, this changelog serves as the release notes for the GitHub or GitLab release.

The default command is based on git log .... This setting (git.changelog) can be overridden. To further customize the release notes for the GitHub or GitLab release, there's github.releaseNotes or gitlab.releaseNotes. Make sure any of these commands output the changelog to stdout. Note that release-it by default is agnostic to commit message conventions. Plugins are available for:

  • GitHub and GitLab Releases
  • auto-changelog
  • Conventional Changelog
  • Keep A Changelog
  • git-cliff

To print the changelog without releasing anything, add the --changelog flag.

โ†’ See Changelog for more details.

Publish to npm

With a package.json in the current directory, release-it will let npm bump the version in package.json (and package-lock.json if present), and publish to the npm registry.

โ†’ See Publish to npm for more details.

Manage pre-releases

With release-it, it's easy to create pre-releases: a version of your software that you want to make available, while it's not in the stable semver range yet. Often "alpha", "beta", and "rc" (release candidate) are used as identifiers for pre-releases. An example pre-release version is 2.0.0-beta.0.

โ†’ See Manage pre-releases for more details.

Update or re-run existing releases

Use --no-increment to not increment the last version, but update the last existing tag/version.

This may be helpful in cases where the version was already incremented. Here are a few example scenarios:

  • To update or publish a (draft) GitHub Release for an existing Git tag.
  • Publishing to npm succeeded, but pushing the Git tag to the remote failed. Then use release-it --no-increment --no-npm to skip the npm publish and try pushing the same Git tag again.

Hooks

Use script hooks to run shell commands at any moment during the release process (such as before:init or after:release).

The format is [prefix]:[hook] or [prefix]:[plugin]:[hook]:

partvalue
prefixbefore or after
pluginversion, git, npm, github, gitlab
hookinit, bump, release

Use the optional :plugin part in the middle to hook into a life cycle method exactly before or after any plugin.

The core plugins include version, git, npm, github, gitlab.

Note that hooks like after:git:release will not run when either the git push failed, or when it is configured not to be executed (e.g. git.push: false). See execution order for more details on execution order of plugin lifecycle methods.

Use --no-hooks to skip all hooks, or disable a single hook from the command line (e.g. --no-hooks.before:init).

All commands can use configuration variables (like template strings). An array of commands can also be provided, they will run one after another. Some example release-it configuration:

{
  "hooks": {
    "before:init": ["npm run lint", "npm test"],
    "after:my-plugin:bump": "./bin/my-script.sh",
    "after:bump": "npm run build",
    "after:git:release": "echo After git push, before github release",
    "after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
  }
}

The variables can be found in the default configuration. Additionally, the following variables are exposed:

version
latestVersion
changelog
name
repo.remote, repo.protocol, repo.host, repo.owner, repo.repository, repo.project
branchName
releaseUrl

All variables are available in all hooks. The only exception is that the additional variables listed above are not yet available in the init hook.

Use --verbose to log the output of the commands.

For the sake of verbosity, the full list of hooks is actually: init, beforeBump, bump, beforeRelease, release or afterRelease. However, hooks like before:beforeRelease look weird and are usually not useful in practice.

Note that arguments need to be quoted properly when used from the command line:

release-it --'hooks.after:release="echo Successfully released ${name} v${version} to ${repo.repository}."'

Using @inquirer/prompts inside custom hook scripts might cause issues (since release-it also uses this itself).

Dry Runs

Use --dry-run to show the interactivity and the commands it would execute.

โ†’ See Dry Runs for more details.

Troubleshooting & debugging

  • With release-it --verbose (or -V), release-it prints the output of every user-defined hook.
  • With release-it -VV, release-it also prints the output of every internal command.
  • Use NODE_DEBUG=release-it:* release-it [...] to print configuration and more error details.

Use verbose: 2 in a configuration file to have the equivalent of -VV on the command line.

Plugins

Since v11, release-it can be extended in many, many ways. Here are some plugins:

PluginDescription
@release-it/bumperRead & write the version from/to any file
@release-it/conventional-changelogProvides recommended bump, conventional-changelog, and updates CHANGELOG.md
@release-it/keep-a-changelogMaintain CHANGELOG.md using the Keep a Changelog standards
@release-it-plugins/lerna-changelogIntegrates lerna-changelog into the release-it pipeline
@jcamp-code/release-it-changelogenUse @unjs/changelogen for versioning and changelog
@release-it-plugins/workspacesReleases each of your projects configured workspaces
release-it-calver-pluginEnables Calendar Versioning (calver) with release-it
@grupoboticario/news-fragmentsAn easy way to generate your changelog file
@j-ulrich/release-it-regex-bumperRegular expression based version read/write plugin for release-it
@jcamp-code/release-it-dotnetUse .csproj or .props file for versioning, automate NuGet publishing
release-it-pnpmAdd basic support for pnpm workspaces, integrates with bumpp and changelogithub
changesets-release-it-pluginCombine Changesets changelog management with release-it
release-it-giteaGitea plugin to create Gitea releases and upload attachments
release-it-beautiful-changelogGenerate beautiful changelogs using conventional commits by @unjs/changelogen
release-it-git-cliffUse git-cliff to pick the next version and generate the changelog

Internally, release-it uses its own plugin architecture (for Git, GitHub, GitLab, npm).

โ†’ See all release-it plugins on npm.

โ†’ See plugins for documentation to write plugins.

Use release-it programmatically

While mostly used as a CLI tool, release-it can be used as a dependency to integrate in your own scripts. See use release-it programmatically for example code.

Projects using release-it

Node.js version support

The latest major version is v21, supporting Node.js 22.21 and up:

release-itNode.js
v21v22.21.0
v20v20.19.0
v19v20.12.0
v18v20
v17v18
v16v16
v15v14

Also see CHANGELOG.md for dates and details.

Links

License

MIT

Are you using release-it at work? Please consider sponsoring me!