Skip to content

Commit 46600de

Browse files
authored
Merge pull request #268 from digitalsadhu/greenkeeper/semantic-release-12.2.2
Greenkeeper/semantic release 12.2.2
2 parents 9ce761b + 1773e94 commit 46600de

File tree

3 files changed

+31
-6
lines changed

3 files changed

+31
-6
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ after_success:
1919
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
2020
- python travis_after_all.py
2121
- export $(cat .to_export_back) &> /dev/null
22-
- npm run semantic-release
22+
- npm run travis-deploy-once "npm run semantic-release"
2323
branches:
2424
except:
2525
- /^v\d+\.\d+\.\d+$/

commitlint.config.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* eslint-env node */
2+
3+
module.exports = {
4+
extends: ['@commitlint/config-conventional'],
5+
6+
// Override rules. See http://marionebl.github.io/commitlint
7+
rules: {
8+
// Disable language rule
9+
lang: [0, 'always', 'eng']
10+
}
11+
}

package.json

+19-5
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@
77
"tester": "mocha --reporter=spec ./test/**/*.test.js",
88
"coverage": "istanbul cover _mocha ./test/**/*.test.js",
99
"lint": "standard './test/**/*.js' './lib/**/*.js' --verbose | snazzy",
10-
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
10+
"semantic-release": "semantic-release",
11+
"travis-deploy-once": "travis-deploy-once",
1112
"precommit": "lint-staged",
12-
"formatter": "prettier-standard-formatter ."
13+
"formatter": "prettier-standard-formatter .",
14+
"commit": "git-cz",
15+
"commit:retry": "git-cz --retry",
16+
"commitmsg": "commitlint -e"
1317
},
1418
"lint-staged": {
1519
"*.js": [
@@ -38,7 +42,6 @@
3842
"body-parser": "^1.18.2",
3943
"debug": "^3.1.0",
4044
"http-status-codes": "^1.3.0",
41-
"husky": "^0.14.0",
4245
"inflection": "^1.7.2",
4346
"lint-staged": "^6.0.0",
4447
"lodash": "^4.17.1",
@@ -47,16 +50,22 @@
4750
"type-is": "^1.6.14"
4851
},
4952
"devDependencies": {
53+
"@commitlint/cli": "^6.0.2",
54+
"@commitlint/config-conventional": "^6.0.2",
55+
"@commitlint/prompt": "^6.0.2",
5056
"chai": "^4.1.2",
57+
"commitizen": "^2.9.6",
5158
"coveralls": "^3.0.0",
59+
"husky": "^0.14.3",
5260
"istanbul": "^0.4.5",
5361
"loopback": "^3.16.2",
5462
"loopback-datasource-juggler": "^3.13.0",
5563
"mocha": "^4.0.1",
5664
"rsvp": "4.7.0",
57-
"semantic-release": "^11.0.2",
65+
"semantic-release": "^12.2.2",
5866
"standard": "^10.0.3",
59-
"supertest": "^3.0.0"
67+
"supertest": "^3.0.0",
68+
"travis-deploy-once": "^4.3.1"
6069
},
6170
"standard": {
6271
"globals": [
@@ -65,5 +74,10 @@
6574
"describe",
6675
"afterEach"
6776
]
77+
},
78+
"config": {
79+
"commitizen": {
80+
"path": "node_modules/@commitlint/prompt"
81+
}
6882
}
6983
}

0 commit comments

Comments
 (0)