fix(changelog): more change log stuff
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user