Skip to content

Commit

Permalink
chore(release): print changelog and handle Github release failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed Feb 17, 2024
1 parent 7408196 commit 88a1791
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/release/Release.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,15 @@ class Release {

// Changelog and Github release.
const changelog = await this.__getChangelog(lernaJSON.version);
const { data: release } = await this.__createGithubRelease(versionTag, changelog);
this.logger.info("Created Github release: %s", release.html_url);
this.logger.log("Changelog:\n\n%s\n\n", changelog);

try {
const { data: release } = await this.__createGithubRelease(versionTag, changelog);
this.logger.info("Created Github release: %s", release.html_url);
} catch (err) {
this.logger.warning("Failed to create a Github release: %s", err.message);
this.logger.log(err);
}
}

// Reset all changes made during versioning.
Expand Down

0 comments on commit 88a1791

Please sign in to comment.