Skip to content

Commit

Permalink
feat(travis): adding semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Halceyon committed Feb 24, 2018
1 parent 17b9f3a commit a4feb9b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
16 changes: 6 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ notifications:
email:
on_success: always
on_failure: change

cache:
directories:
- node_modules
Expand All @@ -16,6 +15,8 @@ node_js:
install:
- npm install
- npm install -g codecov
before_script:
- npm prune
script:
- npm run lint
- npm run test:cover
Expand All @@ -24,12 +25,7 @@ after_success:
- npm run coveralls
- bash <(curl -s https://codecov.io/bash)
- npm run publish:docs
before_deploy:
- cd dist
deploy:
provider: npm
email: craigp@codehq.co.za
skip_cleanup: true
api_key: $NPM_TOKEN
on:
branch: master
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
"rollup-plugin-babel": "^2.6.1",
"semantic-release": "^12.4.1",
"sinon": "^2.0.0-pre.3",
"sinon-stub-promise": "^4.0.0"
"sinon-stub-promise": "^4.0.0",
"travis-deploy-once": "^4.3.4"
},
"scripts": {
"lint": "eslint src test tools",
Expand All @@ -68,6 +69,8 @@
"build": "node tools/build",
"prepublish": "npm run build",
"publish:docs": "easystatic deploy docs --repo Halceyon/aspnet-auth",
"dev": "easystatic start docs"
"dev": "easystatic start docs",
"travis-deploy-once": "travis-deploy-once",
"semantic-release": "semantic-release"
}
}

0 comments on commit a4feb9b

Please sign in to comment.