BASE

semantic-release

semantic-release

Build / code quality tool · Free

Automates package versioning and releases based on commit conventions: creates release notes and runs configured publication steps.

Also known as: semantic-release/semantic-release; auto-versioning; package-publishing

Resource illustration: semantic-release

Open resource ↗

What you can use for free

Code and local use under MIT.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Prepare an automatic release based on commits
  • Connect version determination and release notes to the selected release plugins

Example workflow

A possible workflow; this is not a report of hands-on testing.

Prepare an automatic release based on commits.

Before you start

  • A repository, package manifests, and configuration.
  • A compatible runtime and the target build command.

Steps

  1. Agree on the project's commit conventions and release branches.
  2. Connect version determination and release notes to the selected release plugins.
  3. Add the workflow to scripts or CI with a clear report.

Check your result

  • A clean copy of the project reproduces the result.
  • Errors produce a nonzero exit code and clear diagnostics.

Choosing semantic-release

Prepare an automatic release based on commits

Choose this when

  • Prepare an automatic release based on commits
  • Connect version determination and release notes to the selected release plugins

Requirements

  • Configure release branches in CI and commit message rules; the default preset uses Angular Commit Message Conventions.

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: MIT for the code; dependencies have separate licenses.
  • The version number is determined by formal change types, so commit messages and the release channel must follow the project's policy.

Frequently asked questions

What can you use for free in semantic-release?

Code and local use under MIT.

What additional costs might arise with semantic-release?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for semantic-release?

MIT for the code; dependencies have separate licenses.

How do you get started with semantic-release?

Agree on the project's commit conventions and release branches. Connect version determination and release notes to the selected release plugins. Add the workflow to scripts or CI with a clear report.

How is a patch, minor, or major release chosen?

Under the standard scheme, fix triggers a patch release, feat a minor release, and BREAKING CHANGE a major release. The commit analyzer and release note rules are configurable.

When does publication take place?

semantic-release is designed to run in CI after a successful release branch build. Maintenance and prerelease branches provide separate channels, such as npm dist-tags.

License

MIT for the code; dependencies have separate licenses.

MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.

License terms

Technologies and topics

  • semantic-release
  • build
  • Development

Sources

Other resources