Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
chore(pkg): setup semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
terinjokes committed May 25, 2016
1 parent a652b76 commit fe45f16
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ before_install:
- npm install -g npm@latest-2
after_success:
- npm run coverage
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
- python travis_after_all.py
- 'export $(cat .to_export_back) &> /dev/null'
- npm run semantic-release
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"coveralls": "^2.11.9",
"nock": "^8.0.0",
"nyc": "^6.4.0",
"semantic-release": "^4.3.5",
"xo": "^0.15.0"
},
"homepage": "https://github.com/cloudflare/node-cloudflare",
Expand All @@ -34,8 +35,14 @@
},
"scripts": {
"test": "xo && nyc --reporter=lcov -- ava",
"coverage": "cat ./coverage/lcov.info | coveralls"
"coverage": "cat ./coverage/lcov.info | coveralls",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"files": [
"index.js",
"lib",
"test"
],
"xo": {
"space": true
}
Expand Down

0 comments on commit fe45f16

Please sign in to comment.