fix(fucl): fuck
This commit is contained in:
@@ -66,18 +66,23 @@ if (result.status !== 0) {
|
|||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
const getLatestChangelog = async () => {
|
const getLatestChangelog = () =>
|
||||||
const changelogStream = conventionalChangelog({ releaseCount: 1 });
|
new Promise((resolve, reject) => {
|
||||||
|
const changelogStream = conventionalChangelog({ releaseCount: 1 });
|
||||||
|
|
||||||
let changelog = "";
|
let changelog = "";
|
||||||
for await (const chunk of changelogStream) {
|
changelogStream.on("data", (chunk) => {
|
||||||
changelog += chunk;
|
changelog += chunk.toString();
|
||||||
}
|
});
|
||||||
|
|
||||||
return changelog;
|
changelogStream.on("end", () => {
|
||||||
};
|
resolve(changelog);
|
||||||
|
});
|
||||||
|
|
||||||
const releaseNotes = await getLatestChangelog();
|
changelogStream.on("error", (err) => {
|
||||||
|
reject(err);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
// Step 3: Create or update Gitea release
|
// Step 3: Create or update Gitea release
|
||||||
const createOrUpdateRelease = async () => {
|
const createOrUpdateRelease = async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user