chore(release-script): add changelog task

This commit is contained in:
Andy Joslin
2014-02-12 10:09:40 -05:00
parent 9327ac71c7
commit 6ba680f274
2 changed files with 7 additions and 3 deletions

View File

@@ -23,7 +23,8 @@
"karma-sauce-launcher": "~0.2.0",
"karma-script-launcher": "~0.1.0",
"load-grunt-tasks": "~0.3.0",
"grunt-remove-logging": "~0.2.0"
"grunt-remove-logging": "~0.2.0",
"grunt-conventional-changelog": "~1.1.0"
},
"licenses": [
{

View File

@@ -27,13 +27,16 @@ function prepare {
mkdir -p release
cp -Rf dist/* release
git add package.json bower.json component.json release
grunt changelog
git add package.json bower.json component.json release CHANGELOG.md
git commit -m "chore(release): v$VERSION"
git tag -m "v$VERSION" v$VERSION
echo "--"
echo "-- Version is now $VERSION, codename $CODENAME."
echo "-- Release commit & tag created."
echo "-- Release commit & tag created. Changelog created."
echo "-- Suggestion: read over the changelog and fix any mistakes, then run git commit -a --amend."
echo "-- When ready to push, run ./scripts/finalize-version.sh --action=publish"
echo "--"
}