Skip to content

Commit 472858f

Browse files
committed
chore(releasing): Add travis config and semantic release
1 parent df91296 commit 472858f

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ before_install:
1111
- npm i -g npm@^2.0.0
1212
before_script:
1313
- npm prune
14+
script:
15+
- npm run test
1416
after_success:
1517
- npm run semantic-release
1618
branches:

package.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
{
22
"name": "react-radial-progress",
3-
"version": "1.0.0",
3+
"version": "0.0.0-semantically-released",
44
"description": "a radial progress bar in react js and SVG",
55
"main": "src/index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"commit": "git-cz",
8+
"test": "mocha src/index_test.js -w",
9+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
810
},
911
"repository": {
1012
"type": "git",
11-
"url": "git+https://github.com/samidarko/react-radial-progress.git"
13+
"url": "https://github.com/samidarko/react-radial-progress.git"
1214
},
1315
"keywords": [
1416
"radial",
@@ -22,5 +24,15 @@
2224
"bugs": {
2325
"url": "https://github.com/samidarko/react-radial-progress/issues"
2426
},
25-
"homepage": "https://github.com/samidarko/react-radial-progress#readme"
27+
"homepage": "https://github.com/samidarko/react-radial-progress#readme",
28+
"devDependencies": {
29+
"chai": "3.4.0",
30+
"commitizen": "2.3.0",
31+
"cz-conventional-changelog": "1.1.4",
32+
"mocha": "2.3.3",
33+
"semantic-release": "^4.3.5"
34+
},
35+
"czConfig": {
36+
"path": "node_modules/cz-conventional-changelog"
37+
}
2638
}

0 commit comments

Comments
 (0)