Skip to content

Commit

Permalink
chore: update semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffijoe committed Jan 3, 2018
1 parent 07584da commit f667e74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ before_script:
# Runs the coverage script (which runs the tests)
script: npm run coveralls

# Code coverage
after_success:
- npm run semantic-release

- npm install -g travis-deploy-once@4
- travis-deploy-once "npm run semantic-release"
branches:
except:
- /^v\d+\.\d+\.\d+$/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"cover": "jest --coverage",
"coveralls": "jest --coverage && cat ./coverage/lcov.info | coveralls",
"precommit": "lint-staged && npm run build",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
"semantic-release": "semantic-release"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function createServer(spies: any) {
const classAPI = makeClassInvoker(TestClass)
router.get('/function', fnAPI('handle'))
router.get('/class', classAPI('handle'))
app.use(router.routes())
app.use(router.routes() as any)

return new Promise((resolve, reject) => {
let server: any
Expand Down

0 comments on commit f667e74

Please sign in to comment.