From b547109a71f5f5115534650e58721e70517d664d Mon Sep 17 00:00:00 2001 From: Matthew Smith Date: Tue, 2 Jun 2015 11:01:37 -0600 Subject: [PATCH] Fix alpha changelog generation to be added --- tools/release-scripts/changelog.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/release-scripts/changelog.js b/tools/release-scripts/changelog.js index a97b72b786..c31f53841a 100644 --- a/tools/release-scripts/changelog.js +++ b/tools/release-scripts/changelog.js @@ -29,11 +29,9 @@ export default (version) => { .then(() => exec(`node_modules/.bin/changelog --title v${version} --out ${output}${additionalArgs}`)) .then(() => safeExec(`git add ${changelog}`)) .then(() => { - if (!removedAlphaChangelog) { - return null; + if (removedAlphaChangelog || isPrerelease) { + return safeExec(`git add -A ${alphaChangelog}`); } - - return safeExec(`git add -A ${alphaChangelog}`); }) .then(() => console.log('Generated Changelog'.cyan)); };