Skip to content

Commit d5ef78a

Browse files
committed
Make Travis to release the npm package
Add .npmignore to include dist/*.js files to the npm release (but exclude zip files). See https://docs.travis-ci.com/user/deployment/npm/
1 parent d3757db commit d5ef78a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.npmignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/.git
2+
/dist/*.zip
3+
/node_modules
4+
/scripts
5+
6+
.codeclimate.yml
7+
.gitignore
8+
.travis.yml

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@ deploy:
2828
skip_cleanup: true
2929
on:
3030
tags: true
31+
- provider: npm
32+
email: $NPM_AUTH_EMAIL
33+
api_key: $NPM_AUTH_TOKEN
34+
skip_cleanup: true
35+
on:
36+
tags: true

0 commit comments

Comments
 (0)