Skip to content

Commit

Permalink
Merge pull request #13 from emyann/fix/semantic-release
Browse files Browse the repository at this point in the history
Fix(NPM): Setup semantic release
  • Loading branch information
emyann authored Nov 11, 2017
2 parents 14fd503 + e410479 commit 740244e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
16 changes: 9 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
branches:
only:
- master
- develop
except:
- /^v\d+\.\d+\.\d+$/

language: node_js
node_js:
- v6
- v5
- v4

- v8
- v7
- v6

before_script:
- npm install -g gulp
script: gulp

after_success:
- npm run semantic-release

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"gulp-nsp": "^2.1.0",
"gulp-plumber": "^1.0.0",
"isparta": "^4.0.0",
"jasmine-expect": "^3.0.1"
"jasmine-expect": "^3.0.1",
"semantic-release": "^8.2.0"
},
"eslintConfig": {
"extends": "xo-space",
Expand All @@ -56,7 +57,8 @@
"repository": "emyann/morphism",
"scripts": {
"prepublish": "gulp prepublish",
"test": "gulp"
"test": "gulp",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"license": "MIT",
"dependencies": {
Expand Down

0 comments on commit 740244e

Please sign in to comment.