mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(scripts): clean gh-pages for each example
This commit is contained in:
parent
a85dade8ff
commit
344f636484
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue