Skip to content

Commit

Permalink
ghjk
Browse files Browse the repository at this point in the history
  • Loading branch information
marikaner committed Sep 13, 2024
1 parent 1d4c05e commit 56a3331
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 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.

4 changes: 3 additions & 1 deletion build-packages/merge-changelogs/index.ts
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down Expand Up @@ -164,6 +164,8 @@ export async function mergeChangelogs(): Promise<void> {
.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' }))
);
Expand Down

0 comments on commit 56a3331

Please sign in to comment.