@changesets/cli vs lerna vs release-it vs semantic-release vs standard-version
Automating Versioning and Releases in JavaScript Projects
@changesets/clilernarelease-itsemantic-releasestandard-versionSimilar Packages:

Automating Versioning and Releases in JavaScript Projects

These libraries help teams manage version numbers, generate changelogs, and publish packages to registries. They range from fully automated CI-driven tools to manual CLI helpers, with specific support for single packages or monorepos. Each tool approaches the release process differently, balancing control, automation, and complexity.

Npm Package Weekly Downloads Trend

3 Years

Github Stars Ranking

Stat Detail

Package
Downloads
Stars
Size
Issues
Publish
License
@changesets/cli012,47788.6 kB27125 days agoMIT
lerna036,043608 kB2879 hours agoMIT
release-it09,066383 kB52 days agoMIT
semantic-release024,097128 kB4052 months agoMIT
standard-version07,985136 kB309-ISC

Automating Versioning and Releases in JavaScript Projects

Managing version numbers and changelogs is a critical part of shipping software. The tools @changesets/cli, lerna, release-it, semantic-release, and standard-version all solve this problem, but they fit into different workflows. Some focus on automation, while others prioritize manual control. Let's compare how they handle the release process in real-world scenarios.

🧠 Deciding the Next Version: Manual vs Automatic

The biggest difference between these tools is how they decide whether the next version is a major, minor, or patch release.

@changesets/cli uses a manual approach where developers create a "changeset" file during development.

  • You run a command to describe what changed.
  • The system reads these files to calculate the version bump later.
# @changesets/cli: Create a changeset file
npx changeset
# Select packages and version type (major/minor/patch)

lerna can prompt you during the publish command or infer from commit messages.

  • In independent mode, it asks for each package.
  • In fixed mode, it bumps all packages together.
# lerna: Publish with prompts
npx lerna publish
# CLI asks: "Select a new version for each package"

release-it typically prompts interactively or uses command-line flags.

  • You can configure it to ask for the version number.
  • It can also guess based on git tags or commit history.
# release-it: Interactive prompt
npx release-it
# CLI asks: "Release (1.0.1)?"

semantic-release decides everything automatically based on commit messages.

  • It reads your git history for keywords like feat or fix.
  • No human input is required during the release step.
// semantic-release: .releaserc.json
{
  "branches": ["main"]
}
// Runs in CI: npx semantic-release

standard-version infers the version from commit messages automatically.

  • It follows the conventional commits specification.
  • It does not prompt; it calculates and applies immediately.
// standard-version: package.json script
{
  "scripts": {
    "release": "standard-version"
  }
}

📦 Handling Multiple Packages: Monorepo Support

Monorepos contain multiple packages in one repository. Not all tools handle this equally well.

@changesets/cli is built specifically for monorepos.

  • It tracks changes for each package individually.
  • It handles dependency updates between internal packages automatically.
// @changesets/cli: .changeset/config.json
{
  "$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
  "changelog": "@changesets/cli/changelog",
  "access": "public"
}

lerna is a full monorepo manager that includes versioning.

  • It links local packages together for development.
  • It versions packages either independently or in lockstep.
// lerna: lerna.json
{
  "$schema": "node_modules/lerna/schemas/lerna-schema.json",
  "version": "independent"
}

release-it supports workspaces via plugins.

  • You need to configure the workspace plugin explicitly.
  • It treats the monorepo as a set of distinct release targets.
// release-it: .release-it.json
{
  "plugins": {
    "@release-it/workspaces": {
      "workspaces": ["packages/*"]
    }
  }
}

semantic-release requires specific plugins for monorepos.

  • It does not support multiple packages out of the box.
  • You must configure a multi-package plugin to handle each one.
// semantic-release: .releaserc.js
module.exports = {
  plugins: [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@semantic-release/npm"
  ]
};

standard-version has poor monorepo support.

  • It was designed primarily for single packages.
  • Using it in a monorepo requires complex custom scripts.
// standard-version: package.json (Root)
{
  "scripts": {
    "release": "cd packages/core && standard-version"
  }
}

⚙️ Configuration Setup: Files and Scripts

Each tool requires a different setup style, ranging from zero-config to detailed files.

@changesets/cli uses a dedicated folder for config and changes.

  • You initialize it once to create the folder structure.
  • Most settings live in a JSON config file.
# @changesets/cli: Initialize
npx changeset init
# Creates .changeset folder and config.json

lerna relies on a root configuration file.

  • It manages the whole repository structure.
  • Settings cover versioning, npm client, and command defaults.
// lerna: lerna.json
{
  "packages": ["packages/*"],
  "version": "1.0.0",
  "npmClient": "npm"
}

release-it uses a single config file for all hooks.

  • You define Git, GitHub, and npm steps in one place.
  • It supports extensive customization for each step.
// release-it: .release-it.json
{
  "git": { "commit": true, "push": true },
  "npm": { "publish": true }
}

semantic-release uses a config file or environment variables.

  • It is designed to run with zero config in many cases.
  • Plugins are defined in an array in the config file.
# semantic-release: .releaserc.yaml
branches:
  - main
plugins:
  - "@semantic-release/commit-analyzer"

standard-version configures mostly via package.json.

  • You can add flags to the script command.
  • Advanced config requires a separate file.
// standard-version: package.json
{
  "scripts": {
    "release": "standard-version --release-as minor"
  }
}

📝 Changelog Generation: Format and Control

A good changelog helps users understand what changed. All these tools generate them, but the format varies.

@changesets/cli builds changelogs from the changeset files.

  • The content is written by developers when they create the changeset.
  • This ensures human-readable descriptions rather than raw commit logs.
# @changesets/cli: Example CHANGELOG.md
## 1.1.0
### Minor Changes
- Added new feature by @developer

lerna generates changelogs per package or globally.

  • It uses conventional commits to build the list.
  • You can customize the writer to change the format.
# lerna: Example CHANGELOG.md
# Change Log
## v1.1.0
- feat: add new feature

release-it generates changelogs using plugins.

  • It can use the conventional changelog plugin.
  • You can also write a custom script to generate the text.
// release-it: .release-it.json
{
  "plugins": {
    "@release-it/conventional-changelog": {
      "preset": "angular"
    }
  }
}

semantic-release generates release notes automatically.

  • It posts these notes to GitHub Releases by default.
  • The content is derived strictly from commit messages.
// semantic-release: Custom changelog plugin
module.exports = {
  plugins: [
    ["@semantic-release/release-notes-generator", { "preset": "eslint" }]
  ]
};

standard-version creates a CHANGELOG.md file in the root.

  • It appends new versions to the existing file.
  • It relies entirely on conventional commit messages.
# standard-version: Command output
✓ CHANGELOG.md updated
✓ version bumped 1.0.0 -> 1.1.0

🌱 Similarities: Shared Ground Between Tools

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

1. 📜 Conventional Commits Support

  • Most tools rely on the Conventional Commits specification.
  • This standardizes how commit messages map to version bumps.
# Shared Commit Format
feat: add new feature  -> Minor version
fix: bug fix           -> Patch version
BREAKING CHANGE        -> Major version

2. 🚀 Git Tagging

  • All tools create Git tags to mark release points.
  • This allows you to checkout specific versions of your code later.
# Shared Output
git tag v1.1.0
git push origin --tags

3. 📦 NPM Publishing

  • All tools can publish packages to the npm registry.
  • They handle authentication and version updates in package.json.
# Shared Action
npm publish --access public

4. 🔌 Plugin Ecosystems

  • Most tools support plugins to extend functionality.
  • You can add support for Slack, Sentry, or other services.
// Shared Plugin Concept
plugins: [
  "@tool/slack-notify",
  "@tool/sentry-release"
]

5. 🛡️ Pre-release Support

  • All tools support alpha, beta, or rc versions.
  • This allows testing releases before making them stable.
# Shared Pre-release Command
npx tool release --preid beta

📊 Summary: Key Differences

Feature@changesets/clilernarelease-itsemantic-releasestandard-version
Primary UseMonoreposMonoreposSingle/MultiAutomationLegacy Single
VersioningManual FilesPrompt/CommitPrompt/ConfigAuto (Commits)Auto (Commits)
Monorepo✅ Native✅ Native⚠️ Plugin⚠️ Plugin❌ Poor
Automation⚠️ Semi-Auto⚠️ Semi-Auto✅ Flexible✅ Full Auto✅ Full Auto
Status✅ Active✅ Active✅ Active✅ Active⚠️ Archived

💡 The Big Picture

@changesets/cli is the modern standard for monorepos — especially in TypeScript projects. It balances automation with human review, which prevents accidental breaking changes in complex dependency graphs.

lerna remains a strong choice if you need a full monorepo toolkit beyond just versioning. It handles linking and running tasks across packages better than the others.

release-it is the best choice for single packages where you want control. It is highly configurable and works well for projects that do not fit into a fully automated pipeline.

semantic-release is the king of automation. If your team follows commit standards strictly, this tool removes all manual work from the release process.

standard-version should be avoided for new work. It is archived and no longer receives updates. Migrate to commit-and-tag-version or semantic-release to ensure security and compatibility.

Final Thought: The best tool depends on your team's workflow. If you want safety and review, pick @changesets/cli. If you want speed and automation, pick semantic-release. If you are maintaining a legacy monorepo, lerna might still be your best friend.

How to Choose: @changesets/cli vs lerna vs release-it vs semantic-release vs standard-version

  • @changesets/cli:

    Choose @changesets/cli for monorepos where developers need to review version bumps before merging. It separates change tracking from the merge process using a dedicated folder. This approach prevents accidental breaking changes and gives teams control over the release timeline.

  • lerna:

    Choose lerna if you already use it for monorepo management and need tight integration between linking, building, and versioning. It handles complex dependency graphs well. However, ensure you are using the modern maintained version, as older versions have known issues.

  • release-it:

    Choose release-it for single packages where you want a flexible CLI that can run locally or in CI with custom hooks. It supports a wide range of plugins for Git, GitHub, and npm. It is ideal when you want manual control over the exact moment of release.

  • semantic-release:

    Choose semantic-release for fully automated pipelines where every merge to main triggers a release based on commit messages. It removes human error from versioning. This works best when your team strictly follows conventional commit standards.

  • standard-version:

    Do not choose standard-version for new projects. It is no longer maintained and the repository is archived. Use commit-and-tag-version as a direct fork alternative or migrate to semantic-release for better long-term support.

README for @changesets/cli

@changesets/cli

Open on npmx.dev View changelog

A tool to manage versioning and changelogs with a focus on monorepos.

Visit https://changesets.dev to learn more.