Skip to content

Commit 9a3932b

Browse files
committed
Release: v0.2.0
1 parent 64a9447 commit 9a3932b

File tree

4 files changed

+842
-1
lines changed

4 files changed

+842
-1
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"dependencies": {
3+
"conventional-changelog-cli": "^1.3.2"
4+
}
5+
}

script/git-version.sh

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
346359
function 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
;;

0 commit comments

Comments
 (0)