From ac73b62df21022b4be1921e24e147db18c7ed6af Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Sun, 16 Aug 2020 19:21:17 +0200 Subject: [PATCH] Add missing hook --- cli/commands/publish.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cli/commands/publish.ts b/cli/commands/publish.ts index 355f342..9d3426e 100644 --- a/cli/commands/publish.ts +++ b/cli/commands/publish.ts @@ -119,6 +119,11 @@ export default async function publish(options: { dry: boolean }) { } else { console.log(Colors.yellow("Dry run. Skipping upload")); } + + if (meta.hooks) { + log("Running postpublish hooks"); + await runHooks(meta.hooks.postpublish); + } } finally { await Deno.remove(tmpDir, { recursive: true }); await Deno.remove(packedFile);