From 312c61c42cdb39369413a53ef39dda007b8ef861 Mon Sep 17 00:00:00 2001 From: Marco Vidal Garcia Date: Mon, 2 Oct 2023 12:21:02 +0200 Subject: [PATCH] ci: fix changelog script to sort tags by creation date By default they were sorted by semver --- scripts/post-changelog.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/post-changelog.mjs b/scripts/post-changelog.mjs index fefc5e3c6d..04a3eeb881 100644 --- a/scripts/post-changelog.mjs +++ b/scripts/post-changelog.mjs @@ -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) {