build: fix changelog generation

This commit is contained in:
Michael Kriese 2024-11-01 16:10:12 +01:00
parent 00df9b574c
commit 9eae9d2a6e
No known key found for this signature in database
GPG key ID: F8D7748549A5986A
4 changed files with 18 additions and 12 deletions

View file

@ -56,17 +56,16 @@ export const config = conventionalChangelogPreset({
/**
*
* @param {string|undefined} version
* @param {boolean|undefined} onTag
* @returns
*/
export function getChangelog(version = undefined, onTag = false) {
export function getChangelog(onTag = false) {
return conventionalChangelogCore(
{
config,
releaseCount: onTag ? 2 : 1,
},
{ version, linkCompare: false },
undefined,
undefined,
undefined,
{ headerPartial: '' },