Skip to content

Commit

Permalink
fix(build): avoid crash on gh-page missing dir error
Browse files Browse the repository at this point in the history
  • Loading branch information
dpellier committed Sep 13, 2023
1 parent 0222ebf commit 2507ec2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/generate-gh-pages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ const outDirName = 'docs';
const command = `curl -sS "${tarball}" | tar -xzf - -C ${dir} --strip 1`;
await $([command]);

await $`mv ${dir}/dist dist/v${version}`;
try {
await $`mv ${dir}/dist dist/v${version}`;
} catch (e) {
console.error(`No dist dir found, ignoring the version`, e);
}
}
try {
// add the current build (released just done)
Expand Down

0 comments on commit 2507ec2

Please sign in to comment.