diff --git a/.github/actions/merge-changelogs/index.js b/.github/actions/merge-changelogs/index.js index 828877a32b..6fac8fc0ae 100644 --- a/.github/actions/merge-changelogs/index.js +++ b/.github/actions/merge-changelogs/index.js @@ -112,6 +112,7 @@ async function mergeChangelogs() { const pathsToPublicLogs = packages .filter(({ packageJson }) => !packageJson.private) .map(({ relativeDir }) => (0, node_path_1.resolve)(relativeDir, 'CHANGELOG.md')); + (0, core_1.info)(`changelogs to merge: ${pathsToPublicLogs.join(', ')}`); const changelogs = await Promise.all(pathsToPublicLogs.map(async (file) => (0, promises_1.readFile)(file, { encoding: 'utf8' }))); const newChangelog = await formatChangelog(mergeMessages(changelogs.map(log => parseChangelog(log)).flat())); (0, core_1.setOutput)('changelog', newChangelog); diff --git a/build-packages/merge-changelogs/index.ts b/build-packages/merge-changelogs/index.ts index a6c75247b9..9e11302aeb 100644 --- a/build-packages/merge-changelogs/index.ts +++ b/build-packages/merge-changelogs/index.ts @@ -1,7 +1,7 @@ /* eslint-disable jsdoc/require-jsdoc */ import { readFile } from 'node:fs/promises'; import { resolve } from 'node:path'; -import { setOutput, error, setFailed } from '@actions/core'; +import { setOutput, error, setFailed, info } from '@actions/core'; import { getPackages } from '@manypkg/get-packages'; export const validMessageTypes = [ @@ -164,6 +164,8 @@ export async function mergeChangelogs(): Promise { .filter(({ packageJson }) => !packageJson.private) .map(({ relativeDir }) => resolve(relativeDir, 'CHANGELOG.md')); + info(`changelogs to merge: ${pathsToPublicLogs.join(', ')}`); + const changelogs = await Promise.all( pathsToPublicLogs.map(async file => readFile(file, { encoding: 'utf8' })) );