Skip to content

Commit a6cda17

Browse files
chore(lib): Add semantic-release
1 parent a647a53 commit a6cda17

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ notifications:
1212
script:
1313
- npm run validate
1414
after_success:
15-
- npm run report-coverage
15+
- npm run report-coverage && npm run semantic-release
1616
branches:
1717
only:
1818
- master

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "webpack-validator",
3-
"version": "1.0.0-beta.10",
43
"description": "Validate your webpack config with joi",
54
"main": "dist",
65
"files": [
@@ -19,11 +18,12 @@
1918
"watch:test": "npm run test -- -w",
2019
"release": "npm run build && with-package git commit -am pkg.version && with-package git tag pkg.version && git push && npm publish && git push --tags",
2120
"release:beta": "npm run release && npm run tag:beta",
22-
"tag:beta": "with-package npm dist-tag add pkg.name@pkg.version beta"
21+
"tag:beta": "with-package npm dist-tag add pkg.name@pkg.version beta",
22+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
2323
},
2424
"repository": {
2525
"type": "git",
26-
"url": "git+https://github.com/jonathanewerner/webpack-validator.git"
26+
"url": "https://github.com/jonathanewerner/webpack-validator.git"
2727
},
2828
"author": "Jonathan Werner <jwe@posteo.de> (http://jonathanwerner.net)",
2929
"license": "MIT",
@@ -63,6 +63,7 @@
6363
"path-parse": "1.0.5",
6464
"power-assert": "1.3.1",
6565
"rimraf": "2.5.2",
66+
"semantic-release": "^4.3.5",
6667
"sinon": "1.17.3",
6768
"validate-commit-msg": "2.5.0",
6869
"webpack": "1.12.14",

0 commit comments

Comments
 (0)