INPUT_CHANGELOG_FILE exists for some weird reason

This commit is contained in:
Kir_Antipov 2021-12-11 03:18:04 +03:00
parent 7a8b3f6b81
commit 9fe56c6406

View file

@ -80,7 +80,7 @@ export default abstract class ModPublisher extends Publisher<ModPublisherOptions
const name = typeof options.name === "string" ? options.name : (<string>releaseInfo?.name || version); const name = typeof options.name === "string" ? options.name : (<string>releaseInfo?.name || version);
const changelog = typeof options.changelog === "string" const changelog = typeof options.changelog === "string"
? options.changelog ? options.changelog
: typeof options.changelog?.file === "string" : options.changelog?.file
? await readChangelog(options.changelog.file) ? await readChangelog(options.changelog.file)
: <string>releaseInfo?.body || ""; : <string>releaseInfo?.body || "";