Skip to content

Commit 7fd56f2

Browse files
committed
trying travis release
1 parent 35fbafe commit 7fd56f2

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.travis.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff 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

2527
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)"
3129
deploy:
3230
- provider: releases
3331
skip_cleanup: true
@@ -52,4 +50,4 @@ deploy:
5250
after_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"

0 commit comments

Comments
 (0)