diff --git a/deploy/publish.js b/deploy/publish.js index 2fc24ea37..181389191 100644 --- a/deploy/publish.js +++ b/deploy/publish.js @@ -32,11 +32,13 @@ 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`); - execute({ - cwd: directory, - script: `npm publish --tag ${tag} --access public${tag === "latest" ? " --provenance" : ""}`, - studio: "inherit", - }); + try { + execute({ + cwd: directory, + script: `npm publish --tag ${tag} --access public${tag === "latest" ? " --provenance" : ""}`, + studio: "ignore", + }); + } catch {} // ROLLBACK THE PACKAGE.JSON for (const r of rollbacks) r();