Skip to content

Commit 13261d0

Browse files
committed
fix: github release link changelog error
1 parent 2aeddcf commit 13261d0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/changelog.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ export async function runGenerateChangelog(opts: ReleaseOptions) {
9191
break;
9292
}
9393
}
94-
95-
pkg.changelogs.reverse();
9694
}
9795

9896
// no change
@@ -159,6 +157,8 @@ async function createChangelog(opts: ReleaseOptions) {
159157

160158
const { changelogs = [] } = pkg;
161159

160+
pkg.changelogs?.reverse();
161+
162162
for (const changelog of changelogs) {
163163
const tags = changelog.tags.filter(s => s);
164164

@@ -179,6 +179,8 @@ async function createChangelog(opts: ReleaseOptions) {
179179
content = `## ${title}\n\n${msg || `- No Change`}\n\n` + content;
180180
}
181181

182+
pkg.changelogs?.reverse();
183+
182184
if (dryRun) {
183185
console.log(content);
184186
} else {

0 commit comments

Comments
 (0)