semantic-release reads commit history on release branches, picks the next semver, writes release notes, tags Git, and publishes packages. It is meant to run unattended in continuous integration after tests pass.
Overview
semantic-release is a command-line release tool that ties version numbers to the impact described in commit messages. It analyzes commits since the last release, applies Semantic Versioning rules, and only produces a new version when functional changes warrant it.
By default it expects conventional commits in the Angular style, though preset and plugin options can change parsing and changelog formatting. Companion tools such as commitizen and commitlint help authors keep messages valid for the analyzer.
Each run walks through verifying prerequisites, analyzing commits, confirming the release, generating notes, creating a Git tag, preparing artifacts, publishing to configured registries, and sending notifications. The core engine ships as a separate package for teams building custom CLIs or plugin stacks while keeping the main CLI backward compatible.
The intended setup runs on a CI runner with stored credentials after a green build on branches like main, next, or beta. Plugin hooks extend publishing to many package managers and languages, and shareable configuration presets reduce duplicate setup across repositories.
Key features
- Commit-driven semver bumps
- Automatic changelog generation
- Git tag and publish steps
- CI-oriented unattended releases
- Configurable commit message presets
- Plugin ecosystem for registries
- Shareable configuration packages
- Release channel and timing controls
Use cases
- Publishing npm packages from CI
- Standardizing team commit conventions
- Eliminating manual version bumps
- Coordinated changelog and tag creation
- Pre-release and maintenance branches