From cc619f8d216ef8b8e62079f79e9f5fd18eeb2344 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Tue, 8 Nov 2022 15:02:05 +0100 Subject: [PATCH] fix --- publish.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/publish.js b/publish.js index eb8c5cb..46fd70a 100644 --- a/publish.js +++ b/publish.js @@ -23,9 +23,9 @@ try { branch = process.argv[5]; if (typeof branch != "string" || branch.length < 1) throw new Error("Invalid branch!"); tag = process.argv[6]; - if (typeof tag != "string") throw new Error("Invalid uploadDir!"); - uploadDir = process.argv[7]; if (typeof tag != "string") throw new Error("Invalid tag!"); + uploadDir = process.argv[7]; + if (typeof tag != "string") throw new Error("Invalid uplaodDir!"); message = process.argv[8] || ""; } catch (error) { console.error("Invalid args", error); @@ -81,7 +81,6 @@ function createRelease(apiLink, repo, token, message, tag, branch) { .then(d => d.json()) .then(json => { let releaseID = json.id; - console.log(releaseID); if (isNaN(releaseID)) { return void rej("Invalid Id!"); }