-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure travis for publishing to npm on source tag (#62)
.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
Showing
2 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters