The action won't try to publish assets if no token was specified

Fixes #2
This commit is contained in:
Kir_Antipov 2021-12-10 17:00:43 +03:00
parent eee3b8d067
commit 0eea0ed873

View file

@ -13,7 +13,7 @@ async function main() {
for (const target of PublisherTarget.getValues()) {
const targetName = PublisherTarget.toString(target);
const publisherOptions = commonOptions[targetName.toLowerCase()];
if (!publisherOptions) {
if (!publisherOptions?.token || typeof publisherOptions.token !== "string") {
continue;
}