Skip to content

Commit 1483514

Browse files
committed
chore: release 0.0.1
1 parent 8602fb3 commit 1483514

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

scripts/release.ts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,20 @@ async function publishTypeScriptPackages(packages: PublishableTypeScriptPackage[
226226
continue;
227227
}
228228

229-
await runCommand(
230-
'pnpm',
231-
['--filter', pkg.name, 'publish', '--access', 'public', '--tag', tag],
232-
path.join(repoRoot, 'typescript')
233-
);
229+
try {
230+
await runCommand(
231+
'pnpm',
232+
['--filter', pkg.name, 'publish', '--access', 'public', '--tag', tag],
233+
path.join(repoRoot, 'typescript')
234+
);
235+
} catch (error) {
236+
if (await packageVersionExists(pkg.name, version)) {
237+
console.warn(`Publish failed but ${pkg.name}@${version} is already available, skipping`);
238+
continue;
239+
}
240+
241+
throw error;
242+
}
234243
}
235244

236245
console.log(`Published TypeScript packages with tag '${tag}'`);

0 commit comments

Comments
 (0)