From 344f636484b177a201e675a32c3c7d239785df06 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sun, 13 Sep 2020 13:38:22 -0700 Subject: [PATCH] fix(scripts): clean gh-pages for each example --- scripts/publish-examples.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/publish-examples.js b/scripts/publish-examples.js index be6ab4d4..14078117 100644 --- a/scripts/publish-examples.js +++ b/scripts/publish-examples.js @@ -6,6 +6,8 @@ const { promisify } = require("util"); const ghPublish = promisify(ghpages.publish); async function publishExample(name) { + ghpages.clean(); + try { const folder_path = path.join("examples", name); await ghPublish(folder_path, { @@ -20,8 +22,6 @@ async function publishExample(name) { } (async () => { - ghpages.clean(); - await publishExample("rollup"); await publishExample("rollup-typescript"); await publishExample("routify");