Skip to content

Commit

Permalink
Avoid build failing due to change-log generator errors
Browse files Browse the repository at this point in the history
  • Loading branch information
d4vidi committed May 22, 2019
1 parent 8c6a550 commit f36ce8d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/ci.publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,13 @@ function publishToNpm() {
function generateChangeLog(newVersion) {
logSection('Changelog generator');

const gitToken = process.env.CHANGELOG_GITHUB_TOKEN;
exec.execSync(`CHANGELOG_GITHUB_TOKEN=${gitToken} LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8 github_changelog_generator --future-release "${newVersion}" --no-verbose`);
exec.execSync('git status');
try {
const gitToken = process.env.CHANGELOG_GITHUB_TOKEN;
exec.execSync(`CHANGELOG_GITHUB_TOKEN=${gitToken} LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8 github_changelog_generator --future-release "${newVersion}" --no-verbose`);
exec.execSync('git status');
} catch (err) {
log('Change-log generation failed! (not skipping)', err);
}
}

function updateGit(newVersion) {
Expand Down

0 comments on commit f36ce8d

Please sign in to comment.