Skip to content

Commit

Permalink
chore: Add semantic release
Browse files Browse the repository at this point in the history
BREAKING CHANGE: genesis
  • Loading branch information
akiokio committed Oct 8, 2017
1 parent 3947ecf commit 488b6c6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
20 changes: 14 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
language: node_js
node_js:
- 6
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- '8'
- '7'
- '6'
before_script:
- npm prune
script:
- yarn coverage
- yarn build
notifications:
email: false

after_script: "cat coverage/lcov.info | node_modules/coveralls/bin/coveralls.js"
after_success:
- npm run semantic-release
after_script: "cat coverage/lcov.info | node_modules/coveralls/bin/coveralls.js"
branches:
except:
- /^v\d+\.\d+\.\d+$/
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-signup-login-component",
"version": "1.0.0",
"version": "0.0.0-development",
"main": "dist/ReactSignupLoginComponent.js",
"engines": {
"node": ">=6.0.0"
Expand All @@ -15,7 +15,8 @@
"storybook": "start-storybook -p 9009 -s public",
"build-storybook": "build-storybook -s public",
"predeploy": "npm run build-storybook",
"deploy": "gh-pages -d build"
"deploy": "gh-pages -d build",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"devDependencies": {
"babel-preset-react-app": "^3.0.3",
Expand All @@ -33,7 +34,8 @@
"react-test-renderer": "16",
"@storybook/react": "^3.2.12",
"@storybook/addon-actions": "^3.2.12",
"@storybook/addon-links": "^3.2.12"
"@storybook/addon-links": "^3.2.12",
"semantic-release": "^8.0.3"
},
"dependencies": {
"core-js": "^2.5.1",
Expand All @@ -43,5 +45,9 @@
"react-dom": "^16.0.0",
"react-signup-login-component": "^0.1.6"
},
"homepage": "https://github.com/akiokio/ReactSignupLoginComponent"
"homepage": "https://github.com/akiokio/ReactSignupLoginComponent",
"repository": {
"type": "git",
"url": "https://github.com/akiokio/ReactSignupLoginComponent.git"
}
}

0 comments on commit 488b6c6

Please sign in to comment.