Skip to content

Commit a074f07

Browse files
committed
trying travis release
1 parent 9af5905 commit a074f07

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ script:
2020
after_success:
2121
- npm install coveralls
2222
- cat ./coverage/lcov.info | coveralls
23-
- '[[ "${TRAVIS_BRANCH}" == "master" && "${TRAVIS_EVENT_TYPE}" == "push" ]] && npm run build && git tag $(node -p "require(''./package.json'').version") && export PACKAGE=$(npm pack --silent)'
23+
- ./release.sh
2424

2525
deploy:
2626
- provider: releases
@@ -40,3 +40,5 @@ deploy:
4040
on:
4141
repo: eidng8/vue-tree
4242
#tags: true
43+
after_deploy:
44+
- git checkout dev && git rebase master && git push origin

release.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
set -ev
3+
if [[ "${TRAVIS_BRANCH}" == "master" && "${TRAVIS_EVENT_TYPE}" == "push" ]]; then
4+
npm run build
5+
git tag $(node -p "require('./package.json').version")
6+
export PACKAGE=$(npm pack --silent)
7+
fi

0 commit comments

Comments
 (0)