Skip to content

Commit

Permalink
ci: fix dist tag
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Aug 21, 2024
1 parent 7556976 commit 28d65d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/js/scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ try {
console.log(nextPkg);
await Bun.write("package.json", JSON.stringify(nextPkg, null, 2));
await $`npm publish --access public --tag ${tag}`;
console.log(`npm dist-tag add ${pkg.name}@${pkg.version} ion`);
if (!snapshot) await $`npm dist-tag add ${pkg.name}@${pkg.version} ion`;
if (!snapshot)
await $`npm dist-tag add ${nextPkg.name}@${nextPkg.version} ion`;
} finally {
await Bun.write("package.json", JSON.stringify(pkg, null, 2));
await fs.rmdir(tmp, { recursive: true });
Expand Down

0 comments on commit 28d65d5

Please sign in to comment.