summaryrefslogtreecommitdiff
path: root/tools/release/02_publish_dependency_crates.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-09-15 09:16:06 -0400
committerGitHub <noreply@github.com>2021-09-15 09:16:06 -0400
commit4283e2907e13a089fa2d026c92e074f019550880 (patch)
treec27bb27881ed30edb015b415dd0696c18bdf593a /tools/release/02_publish_dependency_crates.ts
parentbadc87e657f61c522fcf149f23f9a0204c35714f (diff)
chore(scripts): improvements to the release scripts based on the 1.14 release (#12079)
Diffstat (limited to 'tools/release/02_publish_dependency_crates.ts')
-rw-r--r--tools/release/02_publish_dependency_crates.ts12
1 files changed, 9 insertions, 3 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");
}