@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
- const publishJob = await instance.documentation.publishDrafts(id, environment, {
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
- const updatedJob = await instance.documentation.getDocumentationBuild(designSystem.workspaceId, publishJob.id);
54
- if (isJobStatusDone(updatedJob.status))
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") {
@@ -411,5 +411,5 @@
411
411
  ]
412
412
  }
413
413
  },
414
- "version": "1.1.2"
414
+ "version": "1.1.3"
415
415
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@supernovaio/cli",
3
3
  "description": "Supernova.io Command Line Interface",
4
- "version": "1.1.2",
4
+ "version": "1.1.3",
5
5
  "author": "Supernova.io",
6
6
  "homepage": "https://supernova.io/",
7
7
  "keywords": [