From 88a179158ab02d15df92a3d75405205083231ef1 Mon Sep 17 00:00:00 2001 From: Pavel Denisjuk Date: Sat, 17 Feb 2024 13:32:17 +0100 Subject: [PATCH] chore(release): print changelog and handle Github release failure --- scripts/release/Release.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/release/Release.js b/scripts/release/Release.js index e82073f10df..133551d31cb 100644 --- a/scripts/release/Release.js +++ b/scripts/release/Release.js @@ -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.