diff --git a/.github/actions/merge-changelogs/index.js b/.github/actions/merge-changelogs/index.js index dbfdf52be9..d0b0c728d0 100644 --- a/.github/actions/merge-changelogs/index.js +++ b/.github/actions/merge-changelogs/index.js @@ -120,6 +120,7 @@ async function formatChangelog(parsedChangelogs) { async function mergeChangelogs() { // TODO: use package for this const workspaces = (0, core_1.getInput)('workspaces').split(','); + (0, core_1.info)(`workspaces: ${workspaces}`); const workspacesWithVisibility = await Promise.all(workspaces.map(async (workspace) => { const packageJson = await (0, promises_1.readFile)((0, path_1.resolve)(workspace, 'package.json'), { encoding: 'utf8' @@ -129,7 +130,9 @@ async function mergeChangelogs() { const pathsToPublicLogs = workspacesWithVisibility .filter(({ isPublic }) => isPublic) .map(({ workspace }) => (0, path_1.resolve)(workspace, 'CHANGELOG.md')); + (0, core_1.info)(`pathsToPublicLogs: ${pathsToPublicLogs}`); const changelogs = await Promise.all(pathsToPublicLogs.map(async (file) => (0, promises_1.readFile)(file, { encoding: 'utf8' }))); + (0, core_1.info)(`changelogs: ${changelogs}`); const newChangelog = await formatChangelog(mergeMessages(changelogs.map(log => parseChangelog(log)).flat())); (0, core_1.setOutput)('changelog', newChangelog); (0, core_1.info)(newChangelog); diff --git a/build-packages/merge-changelogs/index.ts b/build-packages/merge-changelogs/index.ts index 5f318a36cb..dbf14e3489 100644 --- a/build-packages/merge-changelogs/index.ts +++ b/build-packages/merge-changelogs/index.ts @@ -173,6 +173,7 @@ async function formatChangelog(parsedChangelogs: Change[]): Promise { export async function mergeChangelogs(): Promise { // TODO: use package for this const workspaces = getInput('workspaces').split(','); + info(`workspaces: ${workspaces}`); const workspacesWithVisibility = await Promise.all( workspaces.map(async workspace => { const packageJson = await readFile(resolve(workspace, 'package.json'), { @@ -184,9 +185,11 @@ export async function mergeChangelogs(): Promise { const pathsToPublicLogs = workspacesWithVisibility .filter(({ isPublic }) => isPublic) .map(({ workspace }) => resolve(workspace, 'CHANGELOG.md')); + info(`pathsToPublicLogs: ${pathsToPublicLogs}`); const changelogs = await Promise.all( pathsToPublicLogs.map(async file => readFile(file, { encoding: 'utf8' })) ); + info(`changelogs: ${changelogs}`); const newChangelog = await formatChangelog( mergeMessages(changelogs.map(log => parseChangelog(log)).flat()) );