Skip to content

Commit 6ba680f

Browse files
committed
chore(release-script): add changelog task
1 parent 9327ac7 commit 6ba680f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"karma-sauce-launcher": "~0.2.0",
2424
"karma-script-launcher": "~0.1.0",
2525
"load-grunt-tasks": "~0.3.0",
26-
"grunt-remove-logging": "~0.2.0"
26+
"grunt-remove-logging": "~0.2.0",
27+
"grunt-conventional-changelog": "~1.1.0"
2728
},
2829
"licenses": [
2930
{

scripts/release/finalize-version.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,16 @@ function prepare {
2727
mkdir -p release
2828
cp -Rf dist/* release
2929

30-
git add package.json bower.json component.json release
30+
grunt changelog
31+
32+
git add package.json bower.json component.json release CHANGELOG.md
3133
git commit -m "chore(release): v$VERSION"
3234
git tag -m "v$VERSION" v$VERSION
3335

3436
echo "--"
3537
echo "-- Version is now $VERSION, codename $CODENAME."
36-
echo "-- Release commit & tag created."
38+
echo "-- Release commit & tag created. Changelog created."
39+
echo "-- Suggestion: read over the changelog and fix any mistakes, then run git commit -a --amend."
3740
echo "-- When ready to push, run ./scripts/finalize-version.sh --action=publish"
3841
echo "--"
3942
}

0 commit comments

Comments
 (0)