Skip to content

Commit

Permalink
Make Travis to release the npm package
Browse files Browse the repository at this point in the history
Add .npmignore to include dist/*.js files to the npm release (but exclude zip files). See https://docs.travis-ci.com/user/deployment/npm/
  • Loading branch information
simonbrunel committed May 15, 2016
1 parent a1db0d3 commit 25a1c96
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
14 changes: 5 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@

.DS_Store

node_modules/*
bower_components/
coverage/*
custom/*
dist/*
nbproject/*
node_modules/*

docs/index.md

bower_components/

coverage/*
.DS_Store
.idea
nbproject/*
10 changes: 10 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
bower_components/
coverage/*
custom/*
dist/*.zip
nbproject/*
node_modules/*

docs/index.md
.DS_Store
.idea
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ addons:
- google-chrome-stable

deploy:
provider: releases
- provider: releases
api_key:
secure: E6JiZzA/Qy+UD1so/rVfqYnMhgU4m0cUsljxyrKIiYKlt/ZXo1XJabNkpEIYLvckrNx+g/4cmidNcuLfrnAZJtUg53qHLxyqMTXa9zAqmxxJ6aIpQpNK25FIEk9Xwm2XZdbI5rrm0ZciP5rcgg0X8/j5+RtnU3ZpTOCVkp0P73A=
file:
Expand All @@ -44,3 +44,11 @@ deploy:
skip_cleanup: true
on:
tags: true
- provider: npm
email:
secure: f6jQXdqhoKtEZ3WBvnNM9PB2l9yg8SGmnUwQzeuLpW731opmv1ngPcMA+CotDAavIRs2BvAgVoLJOVGxMRXRSi5pgahfR0O2LetFoT/Px+q4MMqtn3zMgV/OuYL/fIyKXjyoYwSRfjuaIIGX7VTCOpqOEe29UQJAb7XcG9jhgIo=
api_key:
secure: O5lgPeX5ofkMSiUeijs+0hrK9Dejmpki/UABd+rgx3Cmjlxvi5DVugHpcn/6C0if0CoHv5/TqwQHVgL43kwR5ZKcspl7bzK2vD2YBpingF42Oz91YVNZwQIJyWNVSSWzzFYzG9xOXO26ZD1gTZ26Z3X+xfZVtugWkzbBa/c8NmQ=
skip_cleanup: true
on:
tags: true

0 comments on commit 25a1c96

Please sign in to comment.