Skip to content

Commit 2b8fdeb

Browse files
committed
fix: auto-publish on PR merge
1 parent b39ced1 commit 2b8fdeb

File tree

4 files changed

+6892
-5
lines changed

4 files changed

+6892
-5
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
language: node_js
2-
node_js:
3-
- 'stable'
2+
node_js: stable
3+
yarn: true
4+
5+
before_script: yarn global add codecov
6+
script:
7+
- node_modules/.bin/nyc yarn test && yarn travis-deploy-once "yarn semantic-release"
8+
after_success: codecov

package.json

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"scripts": {
77
"test": "tsc && ./node_modules/.bin/mocha --opts tests/mocha.opts",
88
"lint": "./node_modules/.bin/tslint -p .",
9-
"watch": "./node_modules/.bin/nodemon $(which npm) test"
9+
"watch": "./node_modules/.bin/nodemon $(which npm) test",
10+
"travis-deploy-once": "travis-deploy-once",
11+
"semantic-release": "semantic-release"
1012
},
1113
"repository": {
1214
"type": "git",
@@ -25,13 +27,22 @@
2527
},
2628
"homepage": "https://github.com/mike-north/jsonapi-typescript#readme",
2729
"devDependencies": {
30+
"@commitlint/cli": "7.2.1",
31+
"@commitlint/config-conventional": "7.1.2",
32+
"@commitlint/travis-cli": "7.2.1",
33+
"@mike-north/js-lib-renovate-config": "^0.0.1",
34+
"@mike-north/js-lib-semantic-release-config": "^0.0.0-development",
2835
"@types/chai": "^4.0.10",
2936
"@types/mocha": "^2.2.44",
3037
"chai": "^4.1.2",
3138
"dtslint": "^0.3.0",
39+
"husky": "1.1.2",
3240
"mocha": "^4.0.1",
3341
"mocha-typescript": "^1.1.12",
3442
"nodemon": "^1.17.5",
43+
"nyc": "^13.1.0",
44+
"semantic-release": "^15.10.8",
45+
"travis-deploy-once": "^5.0.9",
3546
"ts-node": "^4.0.1",
3647
"tsconfig": "^7.0.0",
3748
"tslint": "^5.8.0",
@@ -40,5 +51,18 @@
4051
},
4152
"dependencies": {
4253
"json-typescript": "^1.0.0"
43-
}
54+
},
55+
"commitlint": {
56+
"extends": [
57+
"@commitlint/config-conventional"
58+
]
59+
},
60+
"husky": {
61+
"hooks": {
62+
"commit-msg": "./node_modules/.bin/commitlint -e $HUSKY_GIT_PARAMS"
63+
}
64+
},
65+
"release": {
66+
"extends": "@mike-north/js-lib-semantic-release-config"
67+
}
4468
}

renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": [
3-
"config:base"
3+
"@mike-north/js-lib-renovate-config"
44
]
55
}

0 commit comments

Comments
 (0)