@supernovaio/cli 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -37,7 +37,7 @@ class PublishDocumentation extends core_1.Command {
|
|
|
37
37
|
}
|
|
38
38
|
// Get workspace -> design system –> version
|
|
39
39
|
const { instance, id, designSystem } = await (0, sdk_1.getWritableVersion)(flags);
|
|
40
|
-
|
|
40
|
+
let publishJob = await instance.documentation.publishDrafts(id, environment, {
|
|
41
41
|
pagePersistentIds: [],
|
|
42
42
|
groupPersistentIds: [],
|
|
43
43
|
});
|
|
@@ -50,8 +50,8 @@ class PublishDocumentation extends core_1.Command {
|
|
|
50
50
|
// Timeout is roughly 30 minutes
|
|
51
51
|
for (let i = 0; i < 30 * 60; i++) {
|
|
52
52
|
await (0, common_1.sleep)(1000);
|
|
53
|
-
|
|
54
|
-
if (isJobStatusDone(
|
|
53
|
+
publishJob = await instance.documentation.getDocumentationBuild(designSystem.workspaceId, publishJob.id);
|
|
54
|
+
if (isJobStatusDone(publishJob.status))
|
|
55
55
|
break;
|
|
56
56
|
}
|
|
57
57
|
if (publishJob.status === "Success") {
|
package/oclif.manifest.json
CHANGED