From 9b85aecf393e8d26048aa26c48e73c5d63cc487f Mon Sep 17 00:00:00 2001 From: Jeongho Nam Date: Wed, 18 Dec 2024 19:46:28 +0900 Subject: [PATCH] Update publish.js --- deploy/publish.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/deploy/publish.js b/deploy/publish.js index 181389191..b816f0f8e 100644 --- a/deploy/publish.js +++ b/deploy/publish.js @@ -32,13 +32,11 @@ const setup = ({ tag, name, directory, version }) => { fs.writeFileSync(file, JSON.stringify(info, null, 2), "utf8"); if (fs.existsSync(`${directory}/package-lock.json`)) fs.rmSync(`${directory}/package-lock.json`); - try { - execute({ - cwd: directory, - script: `npm publish --tag ${tag} --access public${tag === "latest" ? " --provenance" : ""}`, - studio: "ignore", - }); - } catch {} + execute({ + cwd: directory, + script: `npm publish --tag ${tag} --access public${tag === "latest" ? " --provenance" : ""}`, + studio: "ignore", + }); // ROLLBACK THE PACKAGE.JSON for (const r of rollbacks) r();