Skip to content

Commit 53089ed

Browse files
committed
trying travis release
1 parent 7fd56f2 commit 53089ed

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ script:
2121
- npm run test:e2e
2222
# - chmod u+x ./release.sh
2323
# - ./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"
2624

2725
before_deploy:
26+
- export TRAVIS_TAG=${TRAVIS_TAG:-$(node -p "require('./package.json').version")-$(date +'%Y.%m.%d')-$(git log --format=%h -1)}
27+
- echo ${TRAVIS_TAG}
28+
- "[[ ${TAGGED} != 1 ]] && git tag ${TRAVIS_TAG} && export TAGGED=1"
2829
- "[[ ! -e dist ]] && npm run build && export PACKAGE=$(npm pack --silent)"
2930
deploy:
3031
- provider: releases
@@ -35,7 +36,7 @@ deploy:
3536
on:
3637
repo: eidng8/vue-tree
3738
branch: master
38-
tags: true
39+
#tags: true
3940
condition: ${TRAVIS_EVENT_TYPE} == push
4041
- provider: npm
4142
skip_cleanup: true

0 commit comments

Comments
 (0)