File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,13 @@ script:
19
19
- npm install coveralls
20
20
- cat ./coverage/lcov.info | coveralls
21
21
- 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"
24
26
25
27
before_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)"
31
29
deploy :
32
30
- provider : releases
33
31
skip_cleanup : true
@@ -52,4 +50,4 @@ deploy:
52
50
after_deploy :
53
51
# I want to make sure the dev is at the tip of every release.
54
52
# 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