We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8451040 commit 1dfad50Copy full SHA for 1dfad50
scripts/release/sdk.ts
@@ -61,9 +61,13 @@ export async function publishSdk(opts: ReleaseOpts) {
61
62
// Publish
63
console.log(`==> Publishing to NPM: ${name}@${opts.version}`);
64
- await $({ cwd: path })`pnpm install`;
+
65
+ // Add --tag flag for release candidates
66
+ const isReleaseCandidate = opts.version.includes("-rc.");
67
+ const tag = isReleaseCandidate ? "rc" : "latest";
68
69
await $({
- cwd: path,
- })`pnpm npm publish --access public --tolerate-republish`;
70
+ stdio: "inherit",
71
+ })`pnpm --filter ${name} publish --access public --tag ${tag}`;
72
}
73
0 commit comments