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

Commit ecb7d1a

Browse files
committed
feat(build): Trying out semantic-release
1 parent 4c99f95 commit ecb7d1a

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
sudo: false
12
language: node_js
2-
33
cache:
44
directories:
55
- node_modules
@@ -19,7 +19,11 @@ script:
1919

2020
after_success:
2121
- './node_modules/.bin/nyc report --reporter=lcov > coverage.lcov && ./node_modules/.bin/codecov'
22+
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
23+
- python travis_after_all.py
24+
- export $(cat .to_export_back) &> /dev/null
25+
- npm run semantic-release
2226

2327
branches:
2428
only:
25-
- master
29+
- master

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"version": "2.0.0",
32
"name": "babel-plugin-webpack-alias",
43
"description": "babel 6 plugin which allows to use webpack aliases",
54
"main": "build/index.js",
@@ -11,7 +10,8 @@
1110
"test:plugin": "eslint src/ test/ && nyc --cache --reporter=text ava",
1211
"test:ava": "cd examples/ava; rm -rf node_modules; npm it",
1312
"test:mocha": "cd examples/mocha; rm -rf node_modules; npm it",
14-
"prepublish": "npm run build"
13+
"prepublish": "npm run build",
14+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1515
},
1616
"license": "ISC",
1717
"bugs": {
@@ -43,7 +43,8 @@
4343
"eslint-plugin-import": "^1.12.0",
4444
"estraverse-fb": "^1.3.1",
4545
"nyc": "^8.1.0",
46-
"watch": "^0.19.1"
46+
"watch": "^0.19.1",
47+
"semantic-release": "^4.3.5"
4748
},
4849
"keywords": [
4950
"babel",

0 commit comments

Comments
 (0)