Skip to content

Commit

Permalink
Release to npm from Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
MICHAEL JACKSON committed Feb 1, 2018
1 parent c8eb6c5 commit b3f0778
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 52 deletions.
28 changes: 19 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
language: node_js
node_js:
- stable
cache: yarn
node_js: node
cache:
directories:
- "$HOME/.cache/yarn"
- node_modules
env:
global:
- secure: QsBlLieiye0ogp+d8EA5LO2pR/cUUWp8u7ZI3EL9itdnoJsLFCWhqG625qN7k7BvggHTAj1BaFNqHzroMMju7h5n2YfK/mKn6Nz0jhukU8LhHnwMDckP2JMVzgtZokbN26ZdqhzD7Y0lMhfNyKP2guhurVQxCphwhmgAq1y/VRcoPNViCYQFYSBaRnBIWL4MP8Sgi9kG+IoCQIUxRXv/uE0URAEnMk41Cn7d/slt+ov4HBzcF0gNjrx0zMFjGacKNtAReH5f8YujNz2UAXA3ClvU0GzxnnPj4RiwB4YNRFsJlihbzevjwAQhkpjUFi03LVY9fW3rN4Ppbdkr6MkdsE3dJepfWbaVgxjfYiru+53TEwTK2Yphjs4RdQkhp+Y8U/JdhgKSrQPCnCn0HyhiMZjIVU7kcpyXBNq8eBagtSyoHr+AaH02HIqzDD+1l9/RheJdlRlsW/g0leDPtOTyVQDAhHEbHO1lzFfbE/3C83u7VmH3LN5gXdjHPZBtEGWOezN7Zbtd/O4HNhqAqy1fEJiyedXi0Cx+r+d8xF/w2GxRKXVk5ZglsF+zC/xXKsQfMym7WFLGp3OTx4Yig522BDbvNEJklh2h2Iqmgxs5w3t5ms2sdCl/1MxC1cHLkCvqIegxLSVKgtY2G8kHpgIsKgWH/KIJ9WMVu1EeGC3g9bk=
- NPM_TAG=$([[ "$TRAVIS_TAG" == *-* ]] && echo "next" || echo "latest")
script:
- npm run lint
- npm run test
branches:
only:
- master
- /^greenkeeper-/
- npm run lint
- npm test
deploy:
provider: npm
email: [email protected]
api_key: "$NPM_TOKEN"
tag: "$NPM_TAG"
skip_cleanup: true
on:
condition: '"$TRAVIS_TAG" =~ ^v[0-9]'
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"build": "node ./tools/build.js",
"prepublish": "node ./tools/build.js",
"clean": "git clean -fdX .",
"release": "node ./tools/release.js",
"lint": "eslint modules",
"test": "karma start --single-run"
},
Expand Down Expand Up @@ -61,7 +60,6 @@
"karma-webpack": "^2.0.1",
"mocha": "^3.0.2",
"pretty-bytes": "^4.0.2",
"readline-sync": "^1.4.4",
"webpack": "^1.13.1",
"webpack-dev-server": "^1.14.1"
},
Expand Down
37 changes: 0 additions & 37 deletions tools/release.js

This file was deleted.

4 changes: 0 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3186,10 +3186,6 @@ readdirp@^2.0.0:
readable-stream "^2.0.2"
set-immediate-shim "^1.0.1"

readline-sync@^1.4.4:
version "1.4.6"
resolved "https://registry.yarnpkg.com/readline-sync/-/readline-sync-1.4.6.tgz#87fdacf3a15c50ee88750251b14dc5a531c59118"

readline2@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/readline2/-/readline2-1.0.1.tgz#41059608ffc154757b715d9989d199ffbf372e35"
Expand Down

0 comments on commit b3f0778

Please sign in to comment.