diff --git a/.github/actions/merge-changelogs/index.js b/.github/actions/merge-changelogs/index.js index fd15ccb72f..6f55a79abb 100644 --- a/.github/actions/merge-changelogs/index.js +++ b/.github/actions/merge-changelogs/index.js @@ -27,8 +27,9 @@ function getPackageName(changelog) { function splitByVersion(changelog) { return changelog.split('\n## ').map(h2 => { (0, core_1.info)('splitting by version'); - (0, core_1.info)(h2); const [version, ...content] = h2.split('\n'); + (0, core_1.info)(`version: ${version}`); + (0, core_1.info)(`content: ${content}`); return { version, content: content.join('\n').trim() diff --git a/build-packages/merge-changelogs/index.ts b/build-packages/merge-changelogs/index.ts index c91d3cfb6a..5f4ee2ea06 100644 --- a/build-packages/merge-changelogs/index.ts +++ b/build-packages/merge-changelogs/index.ts @@ -33,8 +33,9 @@ function getPackageName(changelog: string): string { function splitByVersion(changelog: string): ContentByVersion[] { return changelog.split('\n## ').map(h2 => { info('splitting by version'); - info(h2); const [version, ...content] = h2.split('\n'); + info(`version: ${version}`); + info(`content: ${content}`); return { version, content: content.join('\n').trim()