mirror of
https://github.com/scratchfoundation/scratch-semantic-release-config.git
synced 2024-11-27 09:55:45 -05:00
37 lines
1.3 KiB
JavaScript
37 lines
1.3 KiB
JavaScript
// semantic-release parses curly-brace template items in plain strings:
|
|
/* eslint-disable no-template-curly-in-string */
|
|
|
|
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',
|
|
{
|
|
// Do not set 'tarballDir' without considering this issue: https://github.com/semantic-release/npm/issues/535
|
|
}
|
|
],
|
|
[
|
|
'@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'
|
|
}
|
|
]
|
|
]
|
|
};
|