-
Notifications
You must be signed in to change notification settings - Fork 91
feat(semantic-release): implement semantic release #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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: | ||
| - arizzitano@edx.org | ||
| - jbradley@edx.org | ||
| on_success: always | ||
| on_failure: always | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I figure we can adjust this once we get a feel for the notification emails and have ironed out any kinks. Side question: do you know whether there's a way to send build failure emails to the person who merged the PR? Not a requirement for this PR (actually probably should go in a separate one) but a nice-to-have for the future. |
||
|
|
||
| script: | ||
| - npm run lint | ||
| - npm run test | ||
|
|
||
| after_script: | ||
| - npm run coveralls | ||
| - npm run semantic-release | ||
| 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", | ||
|
|
@@ -13,6 +13,8 @@ | |
| "deploy-storybook": "storybook-to-ghpages", | ||
| "lint": "eslint --ext .js --ext .jsx .", | ||
| "precommit": "npm run lint", | ||
| "commit": "git-cz", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the expected behavior of this hook? I just did a test commit and it appeared to run but didn't seem to do anything. Do contributors need to install and run
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Discussed in person; we will address this in a follow-on PR. |
||
| "semantic-release": "semantic-release pre && npm publish && semantic-release post", | ||
| "snapshot": "jest --updateSnapshot", | ||
| "start": "start-storybook -p 6006", | ||
| "test": "jest --coverage" | ||
|
|
@@ -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", | ||
|
|
@@ -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", | ||
|
|
@@ -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", | ||
|
|
@@ -76,5 +82,10 @@ | |
| "/node_modules/", | ||
| "(.stories)\\.(jsx)$" | ||
| ] | ||
| }, | ||
| "config": { | ||
| "commitizen": { | ||
| "path": "cz-conventional-changelog" | ||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are also HipChat notifications that we should implement later (I just didn't have the HipChat authentication information)