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