File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed
Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1- [* .{js,jsx,ts,tsx,vue} ]
1+ root = true
2+
3+ [* ]
24indent_style = space
35indent_size = 2
46trim_trailing_whitespace = true
Original file line number Diff line number Diff line change @@ -41,5 +41,3 @@ deploy:
4141 on :
4242 repo : eidng8/vue-tree
4343 # tags: true
44- after_deploy :
45- - git checkout dev && git rebase master && git push origin
Original file line number Diff line number Diff line change 11#! /bin/bash
2- set -ev
2+ set -e
3+
34if [[ " ${TRAVIS_BRANCH} " == " master" && " ${TRAVIS_EVENT_TYPE} " == " push" ]]; then
5+ export TRAVIS_TAG=${TRAVIS_TAG:- $(node -p " require('./package.json').version" )-$(date +' %Y.%m.%d' )-$(git log --format=% h -1)}
6+ 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
414 npm run build
5- git tag $( node -p " require('./package.json').version" ) -$( date +' %Y.%m.%d' )
615 export PACKAGE=$( npm pack --silent)
716else
817 echo Skipping packaging because this is not master, or it is a pull request.
You can’t perform that action at this time.
0 commit comments