Skip to content

Commit 835f81c

Browse files
chore(build): generate tag instructions when --no-changelog specified
1 parent 699f3c8 commit 835f81c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

scripts/release.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,22 @@ projects = projects.reduce((memo, key) => { memo[key] = true; return memo; }, {}
3838
echo('--> Checking working copy status...');
3939
_exec(`node ${rootDir}/scripts/ensure_clean_master.js ${argv.branch || 'master'}`);
4040

41+
commands.push(``);
42+
commands.push(``);
43+
commands.push(`################# To perform the release ################# `);
44+
commands.push(``);
45+
4146
if (!argv['no-changelog']) {
4247
echo('--> Updating CHANGELOG...');
4348
_exec(`node ${rootDir}/scripts/update_changelog.js`);
4449

4550
echo('--> Committing changelog...');
46-
commands.push(``);
47-
commands.push(``);
48-
commands.push(`################# To perform the release ################# `);
49-
commands.push(``);
5051
commands.push(`git commit -m "chore(*): Release prep - Update CHANGELOG" CHANGELOG.md`);
51-
commands.push(`git tag ${version}`);
52-
commands.push(`git push origin ${version}`);
5352
}
5453

54+
commands.push(`git tag ${version}`);
55+
commands.push(`git push origin ${version}`);
56+
5557

5658
Object.keys(projects).map(project => {
5759
echo(`Packaging ${project} for npm...`);

0 commit comments

Comments
 (0)