Skip to content

Commit 620b188

Browse files
author
Mike Pham
committed
fix: changing travis deploy
1 parent be1ea34 commit 620b188

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

‎.travis.yml‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,23 @@ node_js:
44
- 'node'
55
- '8'
66
os: linux
7+
stages:
8+
- test
9+
- name: deploy
10+
if: (branch = "master" OR branch = "master-lts") AND type != pull_request AND tag IS blank
11+
jobs:
12+
include:
13+
- stage: deploy
14+
script:
15+
- yarn run travis-ssh
16+
- git remote set-url origin git@github.com:nativecode-dev/chest.git
17+
- git checkout $TRAVIS_BRANCH
18+
- npm set //registry.npmjs.org/:_authToken "$NPM_TOKEN"
19+
- yarn run travis-release
720
after_failure:
821
- ls -lah --color=auto
922
after_success:
1023
- yarn run travis-coveralls
11-
- yarn run travis-ssh
12-
- git remote set-url origin git@github.com:nativecode-dev/chest.git
13-
- git checkout $TRAVIS_BRANCH
14-
- npm set //registry.npmjs.org/:_authToken "$NPM_TOKEN"
15-
- yarn run travis-release
1624
before_install:
1725
- curl -o- -L https://yarnpkg.com/install.sh | bash -s
1826
- export PATH="$HOME/.yarn/bin:$PATH"

0 commit comments

Comments
 (0)