Skip to content

Commit

Permalink
fix(version): push version 3+
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Aug 16, 2018
1 parent 6b677d9 commit 231ae22
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,4 @@ install:

script:
- if [ "$TRAVIS_EVENT_TYPE" == "push" ] && [ "$TRAVIS_BRANCH" == "master" ]; then ./build/travis-release.sh; fi
- npm run build:release
- npm run validate
- git config --global user.name "Travis CI"
- git config --global user.email "sebastien.jourdain@kitware.com"
- export GIT_PUBLISH_URL=https://${GH_TOKEN}@github.com/Kitware/simput.git
- npm run semantic-release
- npm run doc:publish

16 changes: 8 additions & 8 deletions build/travis-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ set -ev
NIGHTLY_VERSION=`npm info | grep latest | cut -d " " -f 2`
echo "window.SIMPUT_VERSION = '$NIGHTLY_VERSION';" > dist/version.js

# npm run build:release
# npm run validate
# git config --global user.name "Travis CI"
# git config --global user.email "sebastien.jourdain@kitware.com"
# export GIT_PUBLISH_URL=https://${GH_TOKEN}@github.com/Kitware/simput.git
# npm run semantic-release
npm run build:release
npm run validate
git config --global user.name "Travis CI"
git config --global user.email "sebastien.jourdain@kitware.com"
export GIT_PUBLISH_URL=https://${GH_TOKEN}@github.com/Kitware/simput.git
npm run semantic-release

# # Generate website
# npm run doc:publish
# Generate website
npm run doc:publish
1 change: 1 addition & 0 deletions dist/version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
window.SIMPUT_VERSION = "3.0.0";

0 comments on commit 231ae22

Please sign in to comment.