Skip to content

Commit 2507ec2

Browse files
committed
fix(build): avoid crash on gh-page missing dir error
1 parent 0222ebf commit 2507ec2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/generate-gh-pages.mjs

+5-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ const outDirName = 'docs';
3838
const command = `curl -sS "${tarball}" | tar -xzf - -C ${dir} --strip 1`;
3939
await $([command]);
4040

41-
await $`mv ${dir}/dist dist/v${version}`;
41+
try {
42+
await $`mv ${dir}/dist dist/v${version}`;
43+
} catch (e) {
44+
console.error(`No dist dir found, ignoring the version`, e);
45+
}
4246
}
4347
try {
4448
// add the current build (released just done)

0 commit comments

Comments
 (0)