Skip to content

Commit

Permalink
chore: Add deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
Leko committed Mar 12, 2017
1 parent 9b2ac30 commit af6bdcd
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
machine:
node:
version: 6.1.0
dependencies:
pre:
- git config user.name Leko
- git config user.email $NPM_EMAIL
override:
- npm run build
post:
- sudo apt-get install -y jq
test:
pre:
- npm run lint
post:
- npm run build
- bash <(curl -s https://codecov.io/bash)
deployment:
production:
branch: master
commands:
- echo -e "$NPM_USER\n$NPM_PASS\n$NPM_EMAIL" | npm login
- git tag $(jq -r .version package.json)
- git push origin $(jq -r .version package.json)
- npm publish

0 comments on commit af6bdcd

Please sign in to comment.