fix(fucl): fuck
This commit is contained in:
@@ -66,18 +66,23 @@ if (result.status !== 0) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const getLatestChangelog = async () => {
|
||||
const changelogStream = conventionalChangelog({ releaseCount: 1 });
|
||||
const getLatestChangelog = () =>
|
||||
new Promise((resolve, reject) => {
|
||||
const changelogStream = conventionalChangelog({ releaseCount: 1 });
|
||||
|
||||
let changelog = "";
|
||||
for await (const chunk of changelogStream) {
|
||||
changelog += chunk;
|
||||
}
|
||||
let changelog = "";
|
||||
changelogStream.on("data", (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
|
||||
const createOrUpdateRelease = async () => {
|
||||
|
||||
Reference in New Issue
Block a user