mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 04:18:58 +00:00
Update upload-npm.ts
This commit is contained in:
@@ -173,6 +173,14 @@ function publishModule(name: string, dryRun?: boolean): void {
|
||||
);
|
||||
error(stderr || stdout);
|
||||
if (exitCode !== 0) {
|
||||
if (
|
||||
stdout.includes("You cannot publish over the previously published version") ||
|
||||
stderr.includes("You cannot publish over the previously published version")
|
||||
) {
|
||||
console.warn("Ignoring npm publish error:", stdout, stderr);
|
||||
return;
|
||||
}
|
||||
|
||||
throw new Error("npm publish failed with code " + exitCode);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user