Skip to content

Commit 049943c

Browse files
committed
trying different approach for conditional deployments
1 parent 990f52d commit 049943c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ node_js:
44
deploy:
55
- provider: npm
66
on:
7-
branch: master
8-
tags: true
7+
condition: $TRAVIS_BRANCH == "master" && -n $TRAVIS_TAG
98
109
api_key: "${NPM_TOKEN}"
1110
skip_cleanup: true
1211
- provider: npm
1312
on:
14-
branch: master-cli-v2
15-
tags: true
13+
condition: $TRAVIS_BRANCH == "master-cli-v2" && -n $TRAVIS_TAG
1614
1715
api_key: "${NPM_TOKEN}"
1816
skip_cleanup: true

0 commit comments

Comments
 (0)