Skip to content

Commit

Permalink
fix(release): limit release git commit message to 32k
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cwillisf committed Oct 3, 2022
1 parent 1059cb9 commit 7d40354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
'@semantic-release/git',
{
// eslint-disable-next-line no-template-curly-in-string
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
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.)")}'
}
],
[
Expand Down

0 comments on commit 7d40354

Please sign in to comment.