mirror of
https://github.com/scratchfoundation/scratch-semantic-release-config.git
synced 2025-02-17 08:30:42 -05:00
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.
This commit is contained in:
parent
1059cb9b33
commit
7d40354117
1 changed files with 1 additions and 1 deletions
|
@ -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.)")}'
|
||||
}
|
||||
],
|
||||
[
|
||||
|
|
Loading…
Reference in a new issue