File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,13 @@ script:
1919 - npm install coveralls
2020 - cat ./coverage/lcov.info | coveralls
2121 - npm run test:e2e
22- # - chmod u+x ./release.sh
23- # - ./release.sh
22+ # - chmod u+x ./release.sh
23+ # - ./release.sh
24+ - export TRAVIS_TAG=${TRAVIS_TAG:-$(node -p "require('./package.json').version")-$(date +'%Y.%m.%d')-$(git log --format=%h -1)}
25+ - " [[ ${TRAVIS_EVENT_TYPE} == push ]] && git tag ${TRAVIS_TAG} && git describe --tags"
2426
2527before_deploy :
26- - export TRAVIS_TAG=${TRAVIS_TAG:-$(node -p "require('./package.json').version")-$(date +'%Y.%m.%d')-$(git log --format=%h -1)}
27- - " [[ ! -e dist ]] && git tag ${TRAVIS_TAG}"
28- - git describe --tags
29- - npm run build
30- - export PACKAGE=$(npm pack --silent)
28+ - " [[ ! -e dist ]] && npm run build && export PACKAGE=$(npm pack --silent)"
3129deploy :
3230 - provider : releases
3331 skip_cleanup : true
@@ -52,4 +50,4 @@ deploy:
5250after_deploy :
5351 # I want to make sure the dev is at the tip of every release.
5452 # Just save me some key stroke to manually do it, or I may forget to do.
55- - git checkout -t origin/dev && git rebase master && git push
53+ - " git checkout -b origin/dev && git rebase master && git push"
You can’t perform that action at this time.
0 commit comments