]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Make Travis to release the npm package
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Sun, 15 May 2016 21:32:05 +0000 (23:32 +0200)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Sat, 18 Jun 2016 10:14:32 +0000 (12:14 +0200)
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.

.gitignore
.npmignore [new file with mode: 0644]
.travis.yml

index 61c5496342bfdef8f1e9f5ee9eb754cda02c5a46..27254e97e3f96dedac79f754b69f4f887993e01f 100644 (file)
@@ -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/*
diff --git a/.npmignore b/.npmignore
new file mode 100644 (file)
index 0000000..47b4948
--- /dev/null
@@ -0,0 +1,13 @@
+/.git
+/.github
+/coverage
+/custom
+/dist/*.zip
+/docs/index.md
+/node_modules
+
+.codeclimate.yml
+.DS_Store
+.gitignore
+.idea
+.travis.yml
index 6671fc2a40f855705f7494d1c0b7010453d093a1..4643c405e4e531c1c37a3b54def06ff319a85f1b 100644 (file)
@@ -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:
@@ -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