mirror of
https://github.com/scratchfoundation/scratch-semantic-release-config.git
synced 2025-02-17 00:20:29 -05:00
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.
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
module.exports = {
|
|
branches: ['main'],
|
|
plugins: [
|
|
'@semantic-release/commit-analyzer',
|
|
'@semantic-release/release-notes-generator',
|
|
[
|
|
'@semantic-release/changelog',
|
|
{
|
|
changelogTitle: '# Changelog\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.'
|
|
}
|
|
],
|
|
[
|
|
'@semantic-release/npm',
|
|
{
|
|
tarballDir: 'pack'
|
|
}
|
|
],
|
|
[
|
|
'@semantic-release/git',
|
|
{
|
|
// eslint-disable-next-line no-template-curly-in-string
|
|
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.)")}'
|
|
}
|
|
],
|
|
[
|
|
'@semantic-release/github',
|
|
{
|
|
assets: 'pack/*.tgz'
|
|
}
|
|
]
|
|
]
|
|
};
|