Skip to content

Commit b1c7b1a

Browse files
authored
Update .travis.yml
1 parent 8034565 commit b1c7b1a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
language: node_js
22
node_js: 8
33
before_script: yarn build
4-
after_success: './publish-examples.sh'
4+
after_success:
5+
if ([ "$TRAVIS_BRANCH" == "master" ] || [ ! -z "$TRAVIS_TAG" ]) &&
6+
[ "$TRAVIS_PULL_REQUEST" == "false" ]; then
7+
'./publish-examples.sh'
8+
else
9+
echo "Skipping examples deployment..."
10+
fi
511
deploy:
612
skip_cleanup: true
713
provider: npm

0 commit comments

Comments
 (0)