2024-09-10 20:36:16 -04:00
// semantic-release parses curly-brace template items in plain strings:
/* eslint-disable no-template-curly-in-string */
2022-05-20 13:14:49 -04:00
module . exports = {
2022-05-31 15:11:19 -04:00
branches : [ 'main' ] ,
plugins : [
'@semantic-release/commit-analyzer' ,
'@semantic-release/release-notes-generator' ,
2022-05-20 20:31:59 -04:00
[
2022-05-31 15:11:19 -04:00
'@semantic-release/changelog' ,
2022-05-20 20:31:59 -04:00
{
2022-05-31 15:11:19 -04:00
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.'
2022-05-20 20:31:59 -04:00
}
] ,
[
2022-08-31 11:45:48 -04:00
'@semantic-release/npm' ,
2022-05-20 20:31:59 -04:00
{
2024-09-10 17:54:30 -04:00
// Do not set 'tarballDir' to a relative path without considering this issue:
// https://github.com/semantic-release/npm/issues/535
// If the tarball is within the package directory, it will be included in the second 'prepack' run.
tarballDir : '/tmp/semantic-release-${nextRelease.gitHead}/'
2022-05-20 20:31:59 -04:00
}
] ,
[
2022-08-31 11:45:48 -04:00
'@semantic-release/git' ,
2022-05-20 20:31:59 -04:00
{
2022-08-31 11:45:48 -04:00
// eslint-disable-next-line no-template-curly-in-string
2022-10-03 14:33:40 -04:00
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.)")}'
2022-05-20 20:31:59 -04:00
}
] ,
[
2022-05-31 15:11:19 -04:00
'@semantic-release/github' ,
2022-05-20 20:31:59 -04:00
{
2024-09-10 17:54:30 -04:00
assets : '/tmp/semantic-release-${nextRelease.gitHead}/*.tgz'
2022-05-20 20:31:59 -04:00
}
]
2022-05-31 15:11:19 -04:00
]
2022-05-20 13:14:49 -04:00
} ;