fix(changelog): more change log stuff

This commit is contained in:
2025-07-12 17:22:39 -05:00
parent b25debabb2
commit 3661cf5c25
3 changed files with 89 additions and 169 deletions

View File

@@ -45,26 +45,26 @@ if (!GITEA_URL || !GITEA_USERNAME || !GITEA_REPO || !GITEA_TOKEN) {
}
// Step 1: Generate or update CHANGELOG.md
console.log("Generating CHANGELOG.md...");
const result = spawnSync(
"npx",
[
"conventional-changelog",
"-p",
"conventionalcommits",
"-i",
"CHANGELOG.md",
"-s",
"-r",
"0",
],
{ stdio: "inherit", shell: true }
);
// console.log("Generating CHANGELOG.md...");
// const result = spawnSync(
// "npx",
// [
// "conventional-changelog",
// "-p",
// "conventionalcommits",
// "-i",
// "CHANGELOG.md",
// "-s",
// "-r",
// "0",
// ],
// { stdio: "inherit", shell: true }
// );
if (result.status !== 0) {
console.error("Failed to generate changelog");
process.exit(1);
}
// if (result.status !== 0) {
// console.error("Failed to generate changelog");
// process.exit(1);
// }
// Corrected function to get the latest changelog entry from CHANGELOG.md
const getLatestChangelog = async () => {