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!"); }