talira

semantic-release

Fully automated version management and package publishing

open sourceMITself-hostablefree

semantic-release runs in CI after each build on a release branch and does the whole release: it reads the commit messages since the last Git tag (Angular's convention by default, or another preset), works out the next semantic version, writes release notes, tags the commit and publishes the package. Plugins do each step: the official ones publish to npm (with provenance on GitHub Actions), create GitHub and GitLab releases, update a changelog file, commit release files and run shell commands, and community plugins publish to PyPI, Maven Central, crates.io and Docker registries. Distribution channels, pre-release and maintenance branches publish betas and patches for older majors from their own branches. It needs Node.js and Git in the CI environment, and its engine is available separately as @semantic-release/core for custom CLIs.

Problems it solves

  • work out the next version number from our commit messages instead of deciding it by hand
  • publish my npm package automatically from CI whenever a fix or feature is merged to main
  • generate release notes and a GitHub release from conventional commit messages
  • stop forgetting to bump the version in package.json and push a git tag when releasing
  • keep CHANGELOG.md updated automatically on every release
  • publish beta and next pre-releases to npm dist-tags from separate branches
  • ship patch releases for an older major version of my library from a maintenance branch
  • comment automatically on the issues and pull requests that a release fixed
  • automate versioning and releases from GitLab CI for a project hosted on GitLab
  • make sure a breaking change in a commit always bumps the major version
  • run my own script at each step of an automated release, like building and pushing a Docker image
  • publish npm packages with signed provenance attestations from GitHub Actions
  • release a Python, Java or Rust package automatically from commit messages using community plugins

Features

  • next version from commit messages (Angular convention by default, configurable presets)
  • release notes generation
  • Git tag creation and publishing in one CI step
  • official plugins: npm, GitHub, GitLab, git, changelog, exec
  • npm package provenance on GitHub Actions
  • distribution channels (npm dist-tags), pre-release and maintenance branches
  • comments on resolved issues and PRs, and an issue when a release fails (GitHub plugin)
  • shareable configurations
  • JavaScript API and @semantic-release/core engine for custom CLIs
  • recipes for GitHub Actions, GitLab CI, CircleCI, Travis CI and Jenkins
View 1 more
  • community plugins for PyPI, Maven, Gradle, Cargo and Docker

Capabilities

Has a command line toolplan not known
Takes pluginsplan not known

Alternatives

The same job

These do what semantic-release does.

  1. release-please Generate release PRs based on the Conventional Commits spec
  2. GoReleaser Release engineering, simplified
  3. release-plz Publish Rust crates from CI with a Release PR.
  4. Release Drafter Drafts your next release notes as pull requests are merged
  5. Changesets A tool to manage versioning and changelogs with a focus on monorepos
  6. dist (cargo-dist) Shippable application packaging: build, sign and publish release binaries and installers from a git tag

Compare semantic-release with the top 3