Skip to content

Commit 8cb1dd0

Browse files
committed
trying travis release
1 parent fa9b921 commit 8cb1dd0

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.editorconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
[*.{js,jsx,ts,tsx,vue}]
1+
root = true
2+
3+
[*]
24
indent_style = space
35
indent_size = 2
46
trim_trailing_whitespace = true

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

release.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
#!/bin/bash
2-
set -ev
2+
set -e
3+
34
if [[ "${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)
716
else
817
echo Skipping packaging because this is not master, or it is a pull request.

0 commit comments

Comments
 (0)