Skip to content

Commit

Permalink
feat(semantic-release): implement semantic release
Browse files Browse the repository at this point in the history
installed semantic-release package, added commit convential commit analyzer, updated travis yaml to
run semantic release after build success

fix(travis): add node 8 to travis configuration

fix(dependency): Missing @storybook/channels dependency that was causing build failures on Node 8
  • Loading branch information
jaebradley committed Nov 16, 2017
1 parent c408b0d commit 8de3944
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
language: node_js

node_js:
- 8
- 6

cache:
directories:
- ~/.npm

notifications:
email:
recipients:
- [email protected]
- [email protected]
on_success: always
on_failure: always

script:
- npm run lint
- npm run test

after_script:
- npm run coveralls
- npm run semantic-release
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@edx/paragon",
"version": "1.1.7",
"version": "0.0.0-development",
"description": "Accessible, responsive UI component library based on Bootstrap.",
"main": "src/index.js",
"author": "arizzitano",
Expand All @@ -13,6 +13,8 @@
"deploy-storybook": "storybook-to-ghpages",
"lint": "eslint --ext .js --ext .jsx .",
"precommit": "npm run lint",
"commit": "git-cz",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"snapshot": "jest --updateSnapshot",
"start": "start-storybook -p 6006",
"test": "jest --coverage"
Expand All @@ -32,6 +34,7 @@
"@storybook/addon-console": "^1.0.0",
"@storybook/addon-options": "^3.2.6",
"@storybook/addon-storyshots": "^3.2.8",
"@storybook/channels": "^3.2.15",
"@storybook/react": "^3.2.12",
"@storybook/storybook-deployer": "^2.0.0",
"babel-cli": "^6.24.1",
Expand All @@ -42,8 +45,10 @@
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-preset-env": "^1.4.0",
"babel-preset-react": "^6.24.1",
"commitizen": "^2.9.6",
"coveralls": "^3.0.0",
"css-loader": "^0.28.4",
"cz-conventional-changelog": "^2.1.0",
"enzyme": "^2.8.2",
"eslint": "^4.5.0",
"eslint-config-airbnb": "^15.0.1",
Expand All @@ -61,6 +66,7 @@
"react-router-dom": "^4.1.1",
"react-test-renderer": "^15.6.1",
"sass-loader": "^6.0.5",
"semantic-release": "^8.2.0",
"source-map-loader": "^0.2.1",
"style-loader": "^0.19.0",
"webpack": "^3.0.0",
Expand All @@ -76,5 +82,10 @@
"/node_modules/",
"(.stories)\\.(jsx)$"
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
}
}

0 comments on commit 8de3944

Please sign in to comment.