We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72ad7a0 commit f933c43Copy full SHA for f933c43
scripts/github/changesets/publish.ts
@@ -54,7 +54,16 @@ function getReleaseNotes(): string {
54
if (section) {
55
const headline =
56
getFirstHeadline(changelog) || path.relative(repoRoot, file);
57
- notes.push(`# ${headline}\n${section}`);
+ const entry = `# ${headline}\n${section}`;
58
+ // Ensure a logical sequence, packages with Release notes first, packages that are only getting version bumped last
59
+ const isVersionBump = /^\s*[-*+]?\s*_version bump_\s*$/m.test(
60
+ section
61
+ );
62
+ if (isVersionBump) {
63
+ notes.push(entry);
64
+ } else {
65
+ notes.unshift(entry);
66
+ }
67
}
68
69
0 commit comments