22 lines
422 B
YAML
22 lines
422 B
YAML
sudo: required
|
|
dist: trusty
|
|
language: node_js
|
|
node_js:
|
|
- node
|
|
cache:
|
|
yarn: true
|
|
notifications:
|
|
email: false
|
|
before_install:
|
|
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
|
|
after_success:
|
|
- 'if [ ${TRAVIS_PULL_REQUEST} = "false" ]; then
|
|
npm run ci;
|
|
npm run release;
|
|
npm publish --access=public;
|
|
npm run log;
|
|
fi'
|
|
branches:
|
|
only:
|
|
- staging
|
|
- /^greenkeeper/.*$/ |