chore(release): update version to 0.3.0

This commit is contained in:
Nathan Flurry 2026-03-07 18:02:44 -08:00
parent cd29dd57c4
commit 8c3192caef
9 changed files with 47 additions and 11 deletions

View file

@ -302,8 +302,16 @@ export async function publishNpmLibraries(opts: ReleaseOpts) {
}
console.log(`==> Publishing to NPM: ${pkg.name}@${opts.version}`);
await $({ stdio: "inherit", cwd: pkg.dir })`pnpm publish --access public --tag ${tag} --no-git-checks`;
console.log(`✅ Published ${pkg.name}@${opts.version}`);
try {
await $({ stdio: "inherit", cwd: pkg.dir })`pnpm publish --access public --tag ${tag} --no-git-checks`;
console.log(`✅ Published ${pkg.name}@${opts.version}`);
} catch (err: any) {
if (err.stderr?.includes("You cannot publish over the previously published versions") || err.stderr?.includes("403")) {
console.log(`⚠️ ${pkg.name}@${opts.version} already published (npm registry). Skipping.`);
} else {
throw err;
}
}
}
console.log("✅ All library packages published");
@ -384,9 +392,13 @@ export async function publishNpmCli(opts: ReleaseOpts) {
cwd: pkg.dir,
})`pnpm publish --access public --tag ${tag} --no-git-checks`;
console.log(`✅ Published ${pkg.name}@${opts.version}`);
} catch (err) {
console.error(`❌ Failed to publish ${pkg.name}`);
throw err;
} catch (err: any) {
if (err.stderr?.includes("You cannot publish over the previously published versions") || err.stderr?.includes("403")) {
console.log(`⚠️ ${pkg.name}@${opts.version} already published (npm registry). Skipping.`);
} else {
console.error(`❌ Failed to publish ${pkg.name}`);
throw err;
}
}
}