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/. Also cleanup the .gitignore file.
  • Loading branch information
simonbrunel committed Jun 18, 2016
1 parent 07964ee commit 4f7ce54
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
16 changes: 5 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
/coverage
/custom
/dist
/docs/index.md
/node_modules

.DS_Store

node_modules/*
custom/*
dist/*

docs/index.md

bower_components/

coverage/*
.idea
nbproject/*
13 changes: 13 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/.git
/.github
/coverage
/custom
/dist/*.zip
/docs/index.md
/node_modules

.codeclimate.yml
.DS_Store
.gitignore
.idea
.travis.yml
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 4f7ce54

Please sign in to comment.