From ba02a6755f06807778c375e19344b291482d73f1 Mon Sep 17 00:00:00 2001 From: lokesh_coder Date: Sat, 21 Oct 2017 20:00:04 -0700 Subject: [PATCH] build( travis ): Release commands updated --- .travis.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 28c68b9..de23483 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,24 +9,13 @@ notifications: email: false before_install: - echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc -before_script: - - export DISPLAY=:99.0 - - sh -e /etc/init.d/xvfb start - - sleep 3 - - git remote rm origin - - git remote add origin https://${GH_TOKEN}@github.com/lokesh-coder/pretty-checkbox.git - - 'if [ ${TRAVIS_PULL_REQUEST} = "false" ]; then - git fetch && git checkout master; - git config push.default current; - fi' after_success: - 'if [ ${TRAVIS_PULL_REQUEST} = "false" ]; then npm run ci; - npm run release; + npm run release -- --branch *; npm publish --access=public; npm run log; fi' - branches: only: - staging