Skip to content

Commit

Permalink
live release script
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickarlt committed Jul 24, 2015
1 parent 694f5fb commit 60490f6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ npm test || exit 1
# checkout temp branch for release
git checkout -b gh-release

# run prepublish to build files
npm run prepublish

# force add files
#git add $FILES -f
git add $FILES -f

# commit changes with a versioned commit message
git commit -m "build $VERSION"
Expand All @@ -23,10 +24,10 @@ git commit -m "build $VERSION"
zip -r dist/$NAME-v$VERSION.zip $FILES

# run gh-release to create the tag and push release to github
#gh-release --assets $NAME-v$VERSION.zip
gh-release --assets $NAME-v$VERSION.zip

# publish release on NPM
#npm publish
npm publish

# checkout master and cleanup release branch
git checkout master
Expand Down

0 comments on commit 60490f6

Please sign in to comment.