Skip to content

Commit

Permalink
Update publish.js
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Dec 18, 2024
1 parent e8d7fd1 commit 9b85aec
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions deploy/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9b85aec

Please sign in to comment.