semantic-release
26.0.1 · 16 Nov 2026MIT4.4M / weekRepositoryHomepagenpmAtom feed
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
--mergeoption of thegit tagcommand 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
releaseRulesoption. - Breaking
The
branchoption has been removed in favor ofbranches
Security
1 advisory affects 16.0.0; 17.2.3 fixes them
- HighSecret disclosure when containing characters that become URI encodedGHSA-r2j6-p67h-q639 · 18 Nov 2020Fixed in 17.2.3
Release note
Breaking changes
- Breaking
⚠️ For
v16.0.0@betausers 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 usingnullfor 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
--mergeoption of thegit tagcommand 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
releaseRulesoption.Regex are replaced by globs. For example
/core-.*/should be changed to'core-*'. - Breaking
The
branchoption has been removed in favor ofbranches - Breaking
The new
branchesoption 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 changeIf you use the
branchconfiguration and want to publish only from one branch: replacebranchwithbranches("branch": "my-release-branch"=>"branches": "my-release-branch")
Features
Allow
addChannelplugins to returnfalsein order to signify no release was doneAllow
publishplugins to returnfalsein order to signify no release was doneAllow 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
channelto publish success logAdd a flag indicate which branch is the main one
Add helpful detail to
ERELEASEBRANCHESerror messageAllow multiple branches with same channel
Allow to set
cioption via API and config fileCall
getTagHeadonly when necessaryCall
successplugin only once for releases added to a channelCorrect 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 channelDo 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
falseHarmonize parameters passed to
getErrorIgnore 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
awaitSimplify
get-tagsalgorithmThrows 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
branchparameter frompushfunctionRevert 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.