File tree Expand file tree Collapse file tree 4 files changed +842
-1
lines changed
Expand file tree Collapse file tree 4 files changed +842
-1
lines changed Original file line number Diff line number Diff line change 1+ <a name =" 0.2.0 " ></a >
2+ # 0.2.0 (2017-08-04)
3+
4+ * Add sourcelink support (#3 ) ([ 64a9447] ( https://github.com/YoloDev/YoloDev.AspNetCore.Assets/commit/64a9447 ) )
5+ * Enable per-path config (#2 ) ([ 8c223f9] ( https://github.com/YoloDev/YoloDev.AspNetCore.Assets/commit/8c223f9 ) )
6+ * Update build tools (#1 ) ([ 575bc8c] ( https://github.com/YoloDev/YoloDev.AspNetCore.Assets/commit/575bc8c ) )
7+
8+
9+
Original file line number Diff line number Diff line change 1+ {
2+ "dependencies" : {
3+ "conventional-changelog-cli" : " ^1.3.2"
4+ }
5+ }
Original file line number Diff line number Diff line change @@ -338,11 +338,24 @@ function update-changelog() {
338338
339339 cp package.json package.json.tmp
340340 jq " .version=\" $nextVersion \" " < package.json.tmp > package.json
341- yarn run conventional-changelog -- -p eslint -i CHANGELOG.md -s
341+ ./node_modules/.bin/ conventional-changelog -i CHANGELOG.md -s
342342 rm package.json
343343 mv package.json.tmp package.json
344344}
345345
346+ function add-changelog-to-git() {
347+ git add CHANGELOG.md
348+ }
349+
350+ function create-release-commit() {
351+ local lastVersionTag=$( get-prev-version-tag)
352+ say_set " last-version-tag" " $lastVersionTag "
353+ local nextVersion=$( get-next-full-version " $lastVersionTag " )
354+ say_set " next-full-version" " $nextVersion "
355+
356+ git commit -m " Release: v$nextVersion "
357+ }
358+
346359function create-version-tag() {
347360 local lastVersionTag=$( get-prev-version-tag)
348361 say_set " last-version-tag" " $lastVersionTag "
@@ -383,6 +396,13 @@ while [ $# -ne 0 ]; do
383396 update-changelog
384397 ;;
385398
399+ release)
400+ update-changelog
401+ add-changelog-to-git
402+ create-release-commit
403+ create-version-tag
404+ ;;
405+
386406 tag)
387407 create-version-tag
388408 ;;
You can’t perform that action at this time.
0 commit comments