fix: run build before npm publish to include correct version (#653)

This commit is contained in:
Sangrak Choi
2026-01-11 01:20:44 -08:00
committed by GitHub
parent 0809de8262
commit f615b012e7

View File

@@ -114,6 +114,9 @@ function getDistTag(version: string): string | null {
}
async function buildAndPublish(version: string): Promise<void> {
console.log("\nBuilding before publish...")
await $`bun run clean && bun run build`
console.log("\nPublishing to npm...")
const distTag = getDistTag(version)
const tagArgs = distTag ? ["--tag", distTag] : []