Skip to content

Commit

Permalink
more bacon strips
Browse files Browse the repository at this point in the history
  • Loading branch information
marikaner committed Sep 12, 2024
1 parent 1c57637 commit 7ab52e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/merge-changelogs/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions build-packages/merge-changelogs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ async function formatChangelog(parsedChangelogs: Change[]): Promise<string> {
export async function mergeChangelogs(): Promise<void> {
// 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'), {
Expand All @@ -184,9 +185,11 @@ export async function mergeChangelogs(): Promise<void> {
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())
);
Expand Down

0 comments on commit 7ab52e3

Please sign in to comment.