Skip to content

Commit

Permalink
refactor: log before publish, jsdoc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
olga-kulish committed Mar 5, 2024
1 parent 1e00fba commit 0af0100
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/release/packageApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function packageApiFactory(params = {}, data) {
/**
* Checkout master,
* Prompt user whether he wants to publish packages
* @returns {Promise}
* @returns {Promise<Boolean>}
*/
async beforePublish() {
if (this.gitClient) {
Expand Down Expand Up @@ -164,7 +164,8 @@ export default function packageApiFactory(params = {}, data) {
*/
async monorepoPublish() {
const publishPackage = await this.beforePublish();
if (publishPackage) {
if (publishPackage) {
log.doing('Publishing monorepo packages');
return this.npmPackage.lernaPublish();
}
}
Expand Down

0 comments on commit 0af0100

Please sign in to comment.