fix: run build before npm publish to include correct version (#653)
This commit is contained in:
parent
0809de8262
commit
f615b012e7
@ -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] : []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user