Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Jul 29, 2024
1 parent 27187c7 commit 8980b25
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/retag/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,16 @@ async function tag(dry: boolean, definitelyTypedPath: string, name?: string) {
let allowedErrors = 10;
await nAtATime(5, await allPackages.allLatestTypings(), async (pkg) => {
try {
await retry(async () => {
// Only update tags for the latest version of the package.
const version = await getLatestTypingVersion(pkg);
await updateTypeScriptVersionTags(pkg, version, publishClient, consoleLogger.info, dry);
await updateLatestTag(pkg.name, version, publishClient, consoleLogger.info, dry);
}, /*count*/ 2, /*delaySeconds*/ 5);
await retry(
async () => {
// Only update tags for the latest version of the package.
const version = await getLatestTypingVersion(pkg);
await updateTypeScriptVersionTags(pkg, version, publishClient, consoleLogger.info, dry);
await updateLatestTag(pkg.name, version, publishClient, consoleLogger.info, dry);
},
/*count*/ 2,
/*delaySeconds*/ 5,
);
} catch (e: any) {
consoleLogger.error(`Error tagging ${pkg.name}: ${e.stack || e}`);
allowedErrors--;
Expand Down

0 comments on commit 8980b25

Please sign in to comment.