Skip to content

Commit

Permalink
Chore: Add semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin committed Nov 10, 2016
1 parent 1d1dcd4 commit d85e32e
Show file tree
Hide file tree
Showing 3 changed files with 493 additions and 20 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,11 @@ before_install:
phantomjs -v
install:
- yarn
after_success:
- '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:
except:
- /^v\d+\.\d+\.\d+$/
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"name": "react-styleguidist",
"description": "React components style guide generator",
"version": "4.2.0",
"homepage": "https://github.com/sapegin/react-styleguidist",
"author": {
"name": "Artem Sapegin",
"url": "http://sapegin.me/"
},
"repository": {
"type": "git",
"url": "git://github.com/sapegin/react-styleguidist.git"
"url": "https://github.com/sapegin/react-styleguidist.git"
},
"bugs": {
"url": "https://github.com/sapegin/react-styleguidist/issues"
Expand Down Expand Up @@ -89,6 +88,8 @@
"react-addons-test-utils": "~15.3.2",
"react-dom": "~15.3.2",
"react-modal": "~1.5.2",
"semantic-release": "~4.3.5",
"semantic-release-tamia": "~1.0.0",
"sinon": "~1.17.6",
"unexpected": "~10.18.1",
"unexpected-react": "~3.2.4",
Expand All @@ -109,7 +110,13 @@
"publish": "npm run build && gh-pages -d examples/basic/styleguide",
"phantomjs": "phantomjs test/phantom.js examples/basic/styleguide/index.html",
"phantomjs:customised": "phantomjs test/phantom.js examples/customised/styleguide/index.html",
"phantomjs:sections": "phantomjs test/phantom.js examples/sections/styleguide/index.html"
"phantomjs:sections": "phantomjs test/phantom.js examples/sections/styleguide/index.html",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"release": {
"analyzeCommits": "semantic-release-tamia/analyzeCommits",
"generateNotes": "semantic-release-tamia/generateNotes",
"verifyRelease": "semantic-release-tamia/verifyRelease"
},
"pre-commit": "lint-staged",
"ava": {
Expand Down
Loading

0 comments on commit d85e32e

Please sign in to comment.