diff --git a/.travis.yml b/.travis.yml index ca664ef..440be4a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ +sudo: false language: node_js - cache: directories: - node_modules @@ -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 \ No newline at end of file + - master diff --git a/package.json b/package.json index 878acb7..60f8d75 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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": { @@ -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",