Skip to content

Commit f549af6

Browse files
abueideclaude
andauthored
fix: sanitize branch names for semantic-release prerelease (#1230)
The wildcard branch config was using `prerelease: true` which uses the raw branch name as the prerelease identifier. Branch names with underscores (e.g., leanplum_plugin_integration) are invalid per SemVer spec and cause releases to fail. Changed to `prerelease: 'beta'` so all non-master/non-support-branch releases use 'beta' as the prerelease identifier, ensuring SemVer compliance. Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 123061e commit f549af6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

release.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
branches: [
33
'master',
44
{ name: '+([0-9])?(.{+([0-9]),x}).x', prerelease: true }, // support branches (e.g., 1.x, 1.2.x)
5-
{ name: '*', prerelease: true }, // any other branch = prerelease
5+
{ name: '*', prerelease: 'beta' }, // any other branch = beta prerelease (fixes SemVer compliance)
66
],
77
tagFormat: '${name}-v${version}',
88
plugins: [

0 commit comments

Comments
 (0)