Skip to content

Commit 642b397

Browse files
committed
trying travis release
1 parent 8cb1dd0 commit 642b397

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ deploy:
4141
on:
4242
repo: eidng8/vue-tree
4343
#tags: true
44+
after_deploy:
45+
# I want to make sure the dev is at the tip of every release.
46+
# Just save me some key stroke to manually do it, or I may forget to do.
47+
- git checkout -t origin/dev && git rebase master && git push

release.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@ set -e
44
if [[ "${TRAVIS_BRANCH}" == "master" && "${TRAVIS_EVENT_TYPE}" == "push" ]]; then
55
export TRAVIS_TAG=${TRAVIS_TAG:-$(node -p "require('./package.json').version")-$(date +'%Y.%m.%d')-$(git log --format=%h -1)}
66
git tag ${TRAVIS_TAG}
7-
# I want to make sure the dev is at the tip of every release.
8-
# Just save me some key stroke to manually do it, or I may forget to do.
9-
git checkout dev
10-
git rebase master
11-
git push origin
12-
# Back to the releasing
13-
git checkout master
147
npm run build
158
export PACKAGE=$(npm pack --silent)
169
else

0 commit comments

Comments
 (0)