Skip to content

Commit

Permalink
chore(release): use package.json version
Browse files Browse the repository at this point in the history
Instead of git tags to retrieve the current version
  • Loading branch information
Jerska committed Feb 14, 2016
1 parent e573cb1 commit 8348125
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"gulp-uglify": "^1.5.2",
"gulp-util": "^3.0.7",
"isparta": "^4.0.0",
"json": "^9.0.3",
"merge-stream": "^1.0.0",
"mochawesome": "^1.3.0",
"vinyl-buffer": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]]; then
exit
fi

current=`git describe --abbrev=0 --tags || echo '0.0.0'`
current=`json -f package.json version`
read -p "New version number (current is ${current}): " version
export FARGS_VERSION=$version

Expand Down

0 comments on commit 8348125

Please sign in to comment.