Skip to content

Commit 7d40354

Browse files
committed
fix(release): limit release git commit message to 32k
This fixes "spawn E2BIG" errors with VERY long commit messages, which can happen with the first release after enabling semantic-release. We should consider whether it's possible to merge multiple dependency updates into one line, since in our situation that's the source of many redundant lines in the changelog.
1 parent 1059cb9 commit 7d40354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919
'@semantic-release/git',
2020
{
2121
// eslint-disable-next-line no-template-curly-in-string
22-
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
22+
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${(nextRelease.notes.length < 32000) ? nextRelease.notes : (nextRelease.notes.slice(0,32000) + "...\\n\\n(Notes too long. Truncated.)")}'
2323
}
2424
],
2525
[

0 commit comments

Comments
 (0)