Skip to content

Commit 65086fb

Browse files
joao-f-medeirosdannyrb
authored andcommitted
ci(semanticrelease): includes semantic-release configuration (#35)
* feat(semanticrelease): includes semantic-release configuration for Travis CI and commitizen config re #25 * feat(SemanticRelease): Changes commitizen version to keep compatibility with node version re #25
1 parent 67cb6b2 commit 65086fb

File tree

3 files changed

+2730
-81
lines changed

3 files changed

+2730
-81
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,15 @@ language: node_js
22
node_js:
33
- 9
44
- 8
5+
6+
jobs:
7+
include:
8+
- stage: release
9+
node_js: lts/*
10+
script:
11+
- echo "skipping tests"
12+
deploy:
13+
provider: script
14+
skip_cleanup: true
15+
script:
16+
- npx semantic-release

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"npm": ">=5"
1515
},
1616
"scripts": {
17+
"cm": "npx git-cz",
1718
"test": "cross-env CI=1 react-scripts test --env=jsdom",
1819
"test:watch": "react-scripts test --env=jsdom",
1920
"build": "rollup -c",
@@ -43,14 +44,15 @@
4344
"@babel/preset-react": "^7.0.0",
4445
"@svgr/rollup": "^4.1.0",
4546
"babel-eslint": "9.0.0",
47+
"commitizen": "3.1.x",
4648
"cross-env": "^5.2.0",
4749
"eslint": "5.12.0",
4850
"eslint-plugin-import": "^2.14.0",
4951
"eslint-plugin-node": "^8.0.0",
5052
"eslint-plugin-promise": "^4.0.1",
5153
"eslint-plugin-react": "^7.11.1",
5254
"gh-pages": "^2.0.1",
53-
"husky": "^1.2.1",
55+
"husky": "^3.0.2",
5456
"lint-staged": "^8.1.0",
5557
"prettier": "^1.15.3",
5658
"prop-types": "^15.6.2",
@@ -65,6 +67,7 @@
6567
"rollup-plugin-peer-deps-external": "^2.2.0",
6668
"rollup-plugin-postcss": "^2.0.3",
6769
"rollup-plugin-url": "^2.1.0",
70+
"semantic-release": "^15.13.19",
6871
"stylelint": "^9.9.0",
6972
"stylelint-config-recommended": "^2.1.0"
7073
},
@@ -95,5 +98,10 @@
9598
"lodash.debounce": "^4.0.8",
9699
"moment": "^2.23.0",
97100
"stylus": "^0.54.5"
101+
},
102+
"config": {
103+
"commitizen": {
104+
"path": "./node_modules/cz-conventional-changelog"
105+
}
98106
}
99107
}

0 commit comments

Comments
 (0)