Skip to content

Commit

Permalink
Release 1.4.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrahunt committed Oct 14, 2017
1 parent 23949a5 commit 834a287
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tagproreplays",
"version": "1.4.4",
"version": "1.4.5",
"description": "Chrome extension for recording play in TagPro.",
"main": "TagProReplays.js",
"devDependencies": {
Expand Down
25 changes: 14 additions & 11 deletions tools/release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh

set -e

usage() {
echo Usage:
echo "release.sh <version>"
Expand All @@ -9,14 +12,14 @@ if [ -z "$1" ]; then
exit 1
fi
version="$1"
git checkout master \
&& sed --in-place \
"s/\"version\": \".*\"/\"version\": \"$version\"/g" \
package.json \
&& gulp build-release \
&& cd dist && zip -o dist.zip -r * && cd .. \
&& git add . \
&& git commit -m "Release $version." \
&& git tag -a -m "v$version" v$version \
&& git push origin master \
&& git push origin v$version
git checkout master
sed --in-place \
"s/\"version\": \".*\"/\"version\": \"$version\"/g" \
package.json
gulp build-release
cd dist && zip -o dist.zip -r * && cd ..
git add .
git commit -m "Release $version."
git tag -a -m "v$version" v$version
git push origin master
git push origin v$version

0 comments on commit 834a287

Please sign in to comment.