fix(release): changes
This commit is contained in:
@@ -14,7 +14,7 @@ dotenv.config({ path: "./.env" });
|
||||
|
||||
import { createRequire } from "node:module";
|
||||
const require = createRequire(import.meta.url);
|
||||
const conventionalChangelog = require("conventional-changelog");
|
||||
const conventionalChangelog = require("conventional-changelog-conventionalcommits");
|
||||
|
||||
// Resolve the directory of the current script
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
@@ -66,7 +66,6 @@ if (result.status !== 0) {
|
||||
|
||||
const getLatestChangelog = async () => {
|
||||
const changelogStream = conventionalChangelog({
|
||||
preset: "conventionalcommits",
|
||||
releaseCount: 1,
|
||||
});
|
||||
|
||||
@@ -74,6 +73,7 @@ const getLatestChangelog = async () => {
|
||||
for await (const chunk of changelogStream) {
|
||||
changelog += chunk;
|
||||
}
|
||||
|
||||
return changelog;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user