Skip to content

Commit

Permalink
fix: auto-publish on PR merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Nov 7, 2018
1 parent b39ced1 commit 2b8fdeb
Show file tree
Hide file tree
Showing 4 changed files with 6,892 additions and 5 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
language: node_js
node_js:
- 'stable'
node_js: stable
yarn: true

before_script: yarn global add codecov
script:
- node_modules/.bin/nyc yarn test && yarn travis-deploy-once "yarn semantic-release"
after_success: codecov
28 changes: 26 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"scripts": {
"test": "tsc && ./node_modules/.bin/mocha --opts tests/mocha.opts",
"lint": "./node_modules/.bin/tslint -p .",
"watch": "./node_modules/.bin/nodemon $(which npm) test"
"watch": "./node_modules/.bin/nodemon $(which npm) test",
"travis-deploy-once": "travis-deploy-once",
"semantic-release": "semantic-release"
},
"repository": {
"type": "git",
Expand All @@ -25,13 +27,22 @@
},
"homepage": "https://github.com/mike-north/jsonapi-typescript#readme",
"devDependencies": {
"@commitlint/cli": "7.2.1",
"@commitlint/config-conventional": "7.1.2",
"@commitlint/travis-cli": "7.2.1",
"@mike-north/js-lib-renovate-config": "^0.0.1",
"@mike-north/js-lib-semantic-release-config": "^0.0.0-development",
"@types/chai": "^4.0.10",
"@types/mocha": "^2.2.44",
"chai": "^4.1.2",
"dtslint": "^0.3.0",
"husky": "1.1.2",
"mocha": "^4.0.1",
"mocha-typescript": "^1.1.12",
"nodemon": "^1.17.5",
"nyc": "^13.1.0",
"semantic-release": "^15.10.8",
"travis-deploy-once": "^5.0.9",
"ts-node": "^4.0.1",
"tsconfig": "^7.0.0",
"tslint": "^5.8.0",
Expand All @@ -40,5 +51,18 @@
},
"dependencies": {
"json-typescript": "^1.0.0"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"husky": {
"hooks": {
"commit-msg": "./node_modules/.bin/commitlint -e $HUSKY_GIT_PARAMS"
}
},
"release": {
"extends": "@mike-north/js-lib-semantic-release-config"
}
}
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": [
"config:base"
"@mike-north/js-lib-renovate-config"
]
}
Loading

0 comments on commit 2b8fdeb

Please sign in to comment.