We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04f423b commit 6a8a3c2Copy full SHA for 6a8a3c2
src/engine/engine.ts
@@ -205,5 +205,16 @@ async function publishViaGhPages(
205
return;
206
}
207
208
- return await ghPages.publish(dir, options);
+ // do NOT (!!) await ghPages.publish,
209
+ // the promise is implemented in such a way that it always succeeds – even on errors!
210
+ return new Promise((resolve, reject) => {
211
+ ghPages.publish(dir, options, (error) => {
212
+
213
+ if (error) {
214
+ return reject(error);
215
+ }
216
217
+ resolve();
218
+ });
219
220
0 commit comments