Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ script:
- npm run test:e2e
# - chmod u+x ./release.sh
# - ./release.sh
- export TRAVIS_TAG=${TRAVIS_TAG:-$(node -p "require('./package.json').version")-$(date +'%Y.%m.%d')-$(git log --format=%h -1)}
- "[[ ${TRAVIS_EVENT_TYPE} == push ]] && git tag ${TRAVIS_TAG} && git describe --tags"

before_deploy:
- export TRAVIS_TAG=${TRAVIS_TAG:-$(node -p "require('./package.json').version")-$(date +'%Y.%m.%d')-$(git log --format=%h -1)}
- echo ${TRAVIS_TAG}
- "[[ ${TAGGED} != 1 ]] && git tag ${TRAVIS_TAG} && export TAGGED=1"
- "[[ ! -e dist ]] && npm run build && export PACKAGE=$(npm pack --silent)"
deploy:
- provider: releases
Expand All @@ -35,7 +36,7 @@ deploy:
on:
repo: eidng8/vue-tree
branch: master
tags: true
#tags: true
condition: ${TRAVIS_EVENT_TYPE} == push
- provider: npm
skip_cleanup: true
Expand Down