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 ab375da commit 3a03a1f
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: "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();
Expand Down

0 comments on commit 3a03a1f

Please sign in to comment.