Packages

semantic-release

26.0.1 · 16 Nov 2026MIT4.4M / weekRepositoryHomepagenpmAtom feed

Your version

16.0.0

major9 Jan 2020Where it was published

16.0.4 is the newest release of 16.x.

In short

4 breaking13 new1 faster33 fixed5 changed

  • Breaking

    Require Node.js >= 10.13

  • Breaking

    Git CLI version 2.7.1 or higher is now required: The --merge option of the git tag command has been added in Git version 2.7.1 and is now used by semantic-release

  • Breaking

    Regexp are not supported anymore for property matching in the releaseRules option.

  • Breaking

    The branch option has been removed in favor of branches

Security

1 advisory affects 16.0.0; 17.2.3 fixes them

Release note

Breaking changes

  • Breaking

    ⚠️ For v16.0.0@beta users only:

    In v16, a JSON object stored in a Git note is used to keep track of the channels on which a version has been released, the @{channel} suffix is no longer necessary.

    The tags formatted as v{version}@{channel} will now be ignored. If you have releases using this format you will have to upgrade them:

    • Find all the versions that have been released on a branch other than the default one by searching for all tags formatted as v{version}@{channel}

    • For each of those version:

      • Create a tag without the {@channel} if none doesn't already exists

      • Add a Git note to the tag without the {@channel} containing the channels on which the version was released formatted as {"channels":["channel1","channel2"]} and using null for the default channel (for example.{"channels":[null,"channel1","channel2"]})

      • Push the tags and notes

      • Update the GitHub releases that refer to a tag formatted as v{version}@{channel} to use the tag without it

      • Delete the tags formatted as v{version}@{channel}

  • Breaking

    Require Node.js >= 10.13

  • Breaking

    Git CLI version 2.7.1 or higher is now required: The --merge option of the git tag command has been added in Git version 2.7.1 and is now used by semantic-release

  • Breaking

    Regexp are not supported anymore for property matching in the releaseRules option.

    Regex are replaced by globs. For example /core-.*/ should be changed to 'core-*'.

  • Breaking

    The branch option has been removed in favor of branches

  • Breaking

    The new branches option expect either an Array or a single branch definition. To migrate your configuration:

    • If you want to publish package from multiple branches, please see the configuration documentation

    • If you use the default configuration and want to publish only from master: nothing to change

    • If you use the branch configuration and want to publish only from one branch: replace branch with branches ("branch": "my-release-branch" => "branches": "my-release-branch")

Features

  • Allow addChannel plugins to return false in order to signify no release was done

  • Allow publish plugins to return false in order to signify no release was done

  • Allow to release any version on a branch if up to date with next branch

  • Support multiple branches and distribution channels

  • Use Git notes to store the channels on which a version has been released

  • package: update @semantic-release/commit-analyzer to version 7.0.0

Performance Improvements

  • Use git tag --merge <branch> to filter tags present in a branch history

Bug Fixes

  • Add channel to publish success log

  • Add a flag indicate which branch is the main one

  • Add helpful detail to ERELEASEBRANCHES error message

  • Allow multiple branches with same channel

  • Allow to set ci option via API and config file

  • Call getTagHead only when necessary

  • Call success plugin only once for releases added to a channel

  • Correct log when adding channel to tag

  • Correctly determine next pre-release version

  • Correctly determine release to add to a channel

  • Correctly handle skipped releases

  • Display erroring git commands properly

  • Do not call addChannelfor 2 merged branches configured with the same channel

  • Do not create tags in dry-run mode for released to add to a channel

  • Fetch all release branches on CI

  • Fix branch type regexp to handle version with multiple digits

  • Fix maintenance branch regex

  • Fix range regexp to handle version with multiple digits

  • Handle branch properties set to false

  • Harmonize parameters passed to getError

  • Ignore lasst release only if pre-release on the same channel as current branch

  • Increase next version on prerelease branch based on highest commit type

  • Look also for previous prerelease versions to determine the next one

  • Modify fetch function to handle CircleCI specifics

  • On maintenance branch add to channel only version >= to start range

  • Remove confusing logs when searching for releases to add to a channel

  • Remove hack to workaround GitHub Rebase & Merge

  • Remove unnecessary await

  • Simplify get-tags algorithm

  • Throws error if the commit associated with a tag cannot be found

  • Update plugin versions

  • Update plugins dependencies

  • Verify is branch is up to date by comparing remote and local HEAD

  • Remove unnecessary branch parameter from push function

  • Revert to the correct refspec in fetch function

  • Update plugins dependencies

  • repositoryUrl: on beta repositoryUrl needs auth for pre-release flows

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.