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

Commit

Permalink
feat(build): Trying out semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
adriantoine committed Sep 8, 2016
1 parent 4c99f95 commit ecb7d1a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sudo: false
language: node_js

cache:
directories:
- node_modules
Expand All @@ -19,7 +19,11 @@ script:

after_success:
- './node_modules/.bin/nyc report --reporter=lcov > coverage.lcov && ./node_modules/.bin/codecov'
- '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:
only:
- master
- master
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"version": "2.0.0",
"name": "babel-plugin-webpack-alias",
"description": "babel 6 plugin which allows to use webpack aliases",
"main": "build/index.js",
Expand All @@ -11,7 +10,8 @@
"test:plugin": "eslint src/ test/ && nyc --cache --reporter=text ava",
"test:ava": "cd examples/ava; rm -rf node_modules; npm it",
"test:mocha": "cd examples/mocha; rm -rf node_modules; npm it",
"prepublish": "npm run build"
"prepublish": "npm run build",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"license": "ISC",
"bugs": {
Expand Down Expand Up @@ -43,7 +43,8 @@
"eslint-plugin-import": "^1.12.0",
"estraverse-fb": "^1.3.1",
"nyc": "^8.1.0",
"watch": "^0.19.1"
"watch": "^0.19.1",
"semantic-release": "^4.3.5"
},
"keywords": [
"babel",
Expand Down

0 comments on commit ecb7d1a

Please # to comment.