File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ before_script:
1010language : node_js
1111sudo : required
1212node_js :
13- - " stable "
13+ - 6
1414
1515# travis call prepare
1616# Send coverage data to Coveralls
@@ -32,18 +32,11 @@ before_deploy:
3232 git commit --amend -m "[skip travis] version changed $PACKAGE_VERSION"
3333 git push https://${GITHUB_TOKEN}@github.com/$TRAVIS_REPO_SLUG HEAD:$TRAVIS_BRANCH
3434 git tag -f -a "$PACKAGE_VERSION" -m "new version $PACKAGE_VERSION"
35- export LAST_HASH=$(git ls-remote https://github.com/$TRAVIS_REPO_SLUG $TRAVIS_BRANCH | awk '{ print $1}')
35+ export LAST_HASH=$(git ls-remote https://github.com/$TRAVIS_REPO_SLUG refs/heads/ $TRAVIS_BRANCH | awk '{ print $1}')
3636 echo $NPM_TOKEN
3737 fi
3838
3939deploy :
40- - provider : script
41- skip_cleanup : true
42- keep_history : true
43- script : bash public_pages.sh
44- on :
45- branch : master
46- condition : $TRAVIS_COMMIT_MESSAGE == *"[run deploy]"*
4740 - provider : releases
4841 target_commitish : $LAST_HASH
4942 keep_history : true
@@ -53,6 +46,13 @@ deploy:
5346 on :
5447 branch : master
5548 condition : $TRAVIS_COMMIT_MESSAGE == *"[run deploy]"*
49+ - provider : script
50+ skip_cleanup : true
51+ keep_history : true
52+ script : bash public_pages.sh
53+ on :
54+ branch : master
55+ condition : $TRAVIS_COMMIT_MESSAGE == *"[run deploy]"*
5656 - provider : npm
5757 registry : " https://registry.npmjs.org/"
5858 skip_cleanup : true
You can’t perform that action at this time.
0 commit comments