From 0eea0ed873bdd0ee276893c08b33c8fddff5a12d Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Fri, 10 Dec 2021 17:00:43 +0300 Subject: [PATCH] The action won't try to publish assets if no token was specified Fixes #2 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 637ea33..ff2b6ab 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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; }