Skip to content

Commit 1868dd3

Browse files
authored
Merge pull request inspirehep#37 from harunurhan/travis-npm-deploy
setup travis to deploy to npm on version
2 parents fe6edef + f283f4c commit 1868dd3

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,15 @@ before_install:
1717
- export CHROME_BIN=chromium-browser
1818
- export DISPLAY=:99.0
1919
- sh -e /etc/init.d/xvfb start
20+
before_deploy: npm run build
21+
deploy:
22+
provider: npm
23+
skip_cleanup: true
24+
25+
api_key:
26+
secure: X1tbuFHzLYgWePtCo7G1HknOayhPYkl36xLOA5RpMriX+JqB1fLusvrUNcLb/YkFYiAwQqlnMMD6E/x/9ntjazSAYn+AU4aDzpBflXKgpM5rJz6X7QgXQp/VeXajok1UW/EIIN9X/yQqBpI+6y30fyk3Cq3S8EYw4LigMkrzhbs7wRfXA4FxMDF527XANcgxbzl1L6ysO8Nc/ehtJVGaCBqRam6KoSeuzmpsj0hFvVuWmpeW3Z3PtxUiEoZyzYskJlsru5erIk0H9oiKvax7a0qb5VoqTW+pfyU55KI2csaDm6fMfWbvNpKT1ho6R1rlbfVRfGkv6akS3cYPNIA45qeoN5XSX1ZPEl0wT41+b5g3pidfGaGJNggd/EK5XH9BkYHorCdGIfjucSndtE+anuKv3sZH5W6bT/osSKFzsqq3/9+2MTZvBZ0WiW3TCF7o8sxTkI8navoNbjkQOuKvAXH/VCdKbF/D9G0EZ4yDmh31qY/5t1Av89eCSS86vxkzU6yAQxrETFufNfdVyo1kWApRI+ldQbc3w+QE/VPF39wW3eIrhjVUSOCP3a1HK4r2glMxbyxU4PgviCry/jUTxtEWu5NQ6Ci22mfbz2y0ZDrXEwlj6v2SWEnZNSXFe8f1soyDRk5Uk0Fk/YzQR3n9FkEvXZiFPUSi4uI+do/LR70=
27+
on:
28+
tags: true
29+
repo: inspirehep/ng2-multi-record-editor
30+
all_branches: true
31+
node: '6.9.1'

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66
"ng": "ng",
77
"start": "npm run build && npm run serve",
88
"serve": "ng serve",
9-
"build": "ng build && npm run lint",
9+
"build": "npm run lint && ng build",
1010
"test": "npm run build && ng test --watch=false",
1111
"test-dev": "ng test",
1212
"lint": "tslint \"src/**/*.ts\"",
13-
"e2e": "ng e2e"
13+
"e2e": "ng e2e",
14+
"preversion": "npm test",
15+
"version": "npm run build",
16+
"postversion": "git push upstream && git push upstream --tags"
1417
},
1518
"private": true,
1619
"dependencies": {

0 commit comments

Comments
 (0)