Skip to content

Commit

Permalink
Configure travis for publishing to npm on source tag (#62)
Browse files Browse the repository at this point in the history
.travis.yml:
- Configure npm publish from my own email/authtoken.  Will revisit on whether we want this from a single shared account but concerned about securing for now as that will intrinsically mean sharing of a key with n devs.

package.json:
- publish to orgs is private by default.  Change default so that npm publish from travis to @Morgan-Stanley scope will work.

Fixes #61
  • Loading branch information
bingenito authored Nov 6, 2017
1 parent 4774afa commit 5336687
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ cache:
- node_modules

deploy:
provider: pages
skip_cleanup: true
local_dir: docs/
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
branch: master
- provider: pages
skip_cleanup: true
local_dir: docs/
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
branch: master
- provider: npm
skip_cleanup: true
email: "[email protected]"
api_key: $NPMJS_TOKEN # Set in travis-ci.org dashboard
on:
tags: true
branch: master
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"title": "desktopJS",
"description": "Library for abstracting common container hosting",
"version": "1.0.0",
"publishConfig":{
"access": "public"
},
"main": "dist/desktop.js",
"types": "dist/desktopjs.d.ts",
"license": "Apache-2.0",
Expand Down

0 comments on commit 5336687

Please sign in to comment.