From f9749a84969b2c38f871d209a52ee14d1aca510c Mon Sep 17 00:00:00 2001 From: iamkun Date: Wed, 11 Apr 2018 13:36:54 +0800 Subject: [PATCH] chore(ci): update ci --- .travis.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 80ca252a6..c5b8d5539 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,14 +2,15 @@ language: node_js cache: directories: - ~/.npm -notifications: - email: false + - node_modules node_js: - '4' after_success: - - nvm install v8.10.0 && nvm use v8.10.0 - - npm install -g travis-deploy-once semantic-release - - travis-deploy-once "semantic-release" + - if [ "$TRAVIS_BRANCH" == "master" ]; then + nvm install v8.10.0 && nvm use v8.10.0 + npm install -g travis-deploy-once semantic-release + travis-deploy-once "semantic-release" + fi branches: except: - /^v\d+\.\d+\.\d+$/