Skip to content

Commit

Permalink
ci: fix changelog script to sort tags by creation date
Browse files Browse the repository at this point in the history
By default they were sorted by semver
  • Loading branch information
mvidalgarcia committed Oct 2, 2023
1 parent f926aba commit 312c61c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/post-changelog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async function configureSlackToken() {
async function publishChangelog(package_) {
try {
await simpleGit().fetch(["origin", "master", "--tags"]);
const tags = await simpleGit().tags();
const tags = await simpleGit().tags({ "--sort": "-taggerdate" });
const diff = await getDiff(tags.latest ?? "", changelogPath(package_));
const files = gitDiffParser.parse(diff);
if (files.length === 0) {
Expand Down

0 comments on commit 312c61c

Please sign in to comment.