build: fix changelog generation

This commit is contained in:
Michael Kriese 2024-11-01 16:13:49 +01:00
parent 9f05044aeb
commit 073f5294d1
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: '' },