From 3a03a1fd2dc7052bd58ee231ed5798e19e943d13 Mon Sep 17 00:00:00 2001 From: Jeongho Nam Date: Wed, 18 Dec 2024 18:07:37 +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 c2ca19420..2fc24ea37 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: "inherit", - }); - } catch {} + execute({ + cwd: directory, + script: `npm publish --tag ${tag} --access public${tag === "latest" ? " --provenance" : ""}`, + studio: "inherit", + }); // ROLLBACK THE PACKAGE.JSON for (const r of rollbacks) r();