Skip to content

Commit

Permalink
chore: set up semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
alangpierce committed Aug 14, 2016
1 parent 5d8156c commit c11b119
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
22 changes: 20 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
sudo: false
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- "6"
- "4"
- '6'
- '4'
before_install:
- npm i -g npm@^2.0.0
before_script:
- npm prune
after_success:
- '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+$/
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "bulk-decaffeinate",
"version": "1.0.0",
"description": "Run decaffeinate and related operations on a whole codebase, or just part of one.",
"main": "dist/bulk-decaffeinate.js",
"jsnext:main": "dist/bulk-decaffeinate.mjs",
Expand All @@ -13,11 +12,12 @@
"build": "rollup -c",
"lint": "eslint src test",
"pretest": "npm run build",
"test": "mocha"
"test": "mocha",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
"type": "git",
"url": "git+https://github.com/alangpierce/bulk-decaffeinate.git"
"url": "https://github.com/alangpierce/bulk-decaffeinate.git"
},
"keywords": [
"coffeescript",
Expand Down Expand Up @@ -48,7 +48,8 @@
"mocha": "^3.0.2",
"rollup": "^0.34.5",
"rollup-plugin-babel": "^2.6.1",
"rollup-plugin-json": "^2.0.1"
"rollup-plugin-json": "^2.0.1",
"semantic-release": "^4.3.5"
},
"dependencies": {
"babel-polyfill": "^6.13.0",
Expand Down

0 comments on commit c11b119

Please sign in to comment.