Skip to content

Commit

Permalink
Logging hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
artufimtcev committed Nov 8, 2024
1 parent e053121 commit 80587ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@supernovaio/cli",
"description": "Supernova.io Command Line Interface",
"version": "1.1.3",
"version": "1.1.4",
"author": "Supernova.io",
"homepage": "https://supernova.io/",
"keywords": [
Expand Down
12 changes: 9 additions & 3 deletions src/commands/publish-documentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,21 @@ export class PublishDocumentation extends Command {

// Get workspace -> design system –> version
const { instance, id, designSystem } = await getWritableVersion(flags)

this.log(`Queueing documentation publish in ${designSystem.name}...`)

let publishJob = await instance.documentation.publishDrafts(id, environment, {
pagePersistentIds: [],
groupPersistentIds: [],
})

if (!(flags.awaitPublishJob ?? true)) {
this.log(`Publishing documentation in ${designSystem.name} has started, job await is disabled, exiting...`)
this.log(`Documentation queued for publishing`.green);

if (!flags.awaitPublishJob) {
this.log(`Documentation publish await is disabled, exiting before the publish is finished.`.yellow)
return;
} else {
this.log(`Publishing documentation in ${designSystem.name}...`)
this.log(`Waiting for the documentation publish to be finished...`);
}

// Timeout is roughly 30 minutes
Expand Down

0 comments on commit 80587ae

Please sign in to comment.