Skip to content

Commit 614559d

Browse files
committed
feat: integrate changelog aggregation into release workflow and update changelog header
1 parent 1978912 commit 614559d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,7 @@ jobs:
6262
with:
6363
title: "[Release] [GitHub Action] Update package versions"
6464
publish: pnpm publish:packages
65-
version: pnpm version:packages
65+
version: pnpm version:packages && pnpm aggregate-changelogs
6666
commit: "[WSO2 Release] [GitHub Action] [Release] [skip ci] update package versions"
6767
env:
6868
GITHUB_TOKEN: ${{ env.GH_TOKEN }}
69-
70-
- name: 📝 Aggregate CHANGELOGs
71-
id: aggregate-changelogs
72-
run: pnpm aggregate-changelogs

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- THIS FILE IS AUTOGENERATED. DO NOT EDIT DIRECTLY. -->
2+
13
# Aggregated CHANGELOG
24

35
## Table of Contents

scripts/aggregate-changelogs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ const findChangelogs = (dir) => {
7070

7171
const aggregate = () => {
7272
const changelogFiles = findChangelogs(rootDir);
73-
let toc = '# Aggregated CHANGELOG\n\n';
73+
let toc = '<!-- THIS FILE IS AUTOGENERATED. DO NOT EDIT DIRECTLY. -->\n\n';
74+
toc += '# Aggregated CHANGELOG\n\n';
7475
toc += '## Table of Contents\n\n';
7576
changelogFiles.forEach(file => {
7677
const relPath = path.relative(rootDir, file);

0 commit comments

Comments
 (0)