diff options
Diffstat (limited to 'tools/release')
-rw-r--r-- | tools/release/02_publish_dependency_crates.ts | 12 | ||||
-rw-r--r-- | tools/release/helpers/deno_workspace.ts | 8 |
2 files changed, 13 insertions, 7 deletions
diff --git a/tools/release/02_publish_dependency_crates.ts b/tools/release/02_publish_dependency_crates.ts index 9dd6253fe..d325f86a2 100644 --- a/tools/release/02_publish_dependency_crates.ts +++ b/tools/release/02_publish_dependency_crates.ts @@ -4,8 +4,14 @@ import { DenoWorkspace, getCratesPublishOrder } from "./helpers/mod.ts"; const workspace = await DenoWorkspace.load(); -const dependencyCrates = workspace.getDependencyCrates(); +const dependencyCrates = getCratesPublishOrder(workspace.getDependencyCrates()); -for (const crate of getCratesPublishOrder(dependencyCrates)) { - await crate.publish(); +try { + for (const [i, crate] of dependencyCrates.entries()) { + await crate.publish(); + console.log(`Published ${i + 1} of ${dependencyCrates.length} crates.`); + } +} finally { + // system beep to notify error or completion + console.log("\x07"); } diff --git a/tools/release/helpers/deno_workspace.ts b/tools/release/helpers/deno_workspace.ts index 169394af9..802063b62 100644 --- a/tools/release/helpers/deno_workspace.ts +++ b/tools/release/helpers/deno_workspace.ts @@ -141,15 +141,15 @@ export class DenoWorkspaceCrate { console.log(`Publishing ${this.name} ${this.version}...`); - // Sometimes a publish may fail due to local caching issues. - // Usually it will fix itself after retrying so try a few - // times before failing hard. + // Sometimes a publish may fail due to the crates.io index + // not being updated yet. Usually it will be resolved after + // retrying, so try a few times before failing hard. return await withRetries({ action: async () => { await cargo.publishCrate(this.directoryPath); return true; }, - retryCount: 3, + retryCount: 5, retryDelaySeconds: 10, }); } |