Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhz-io/travis-scoped-publish
https://github.com/nhz-io/travis-scoped-publish
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nhz-io/travis-scoped-publish
- Owner: nhz-io
- License: mit
- Created: 2017-02-14T22:44:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-14T23:55:15.000Z (almost 8 years ago)
- Last Synced: 2024-05-02T02:19:37.302Z (8 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @nhz.io/travis-scoped-publish
Publishing scoped modules with public assess from travis
## Configure travis
Set **NPM_AUTH_TOKEN** repository variable in travis to your npm auth token (from `~/.npmrc`)## Modify the .travis.yml below to your needs
```yml
language: node_jsdeploy:
- provider: script
script: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc 2>/dev/null
on:
tags: true- provider: script
script: npm publish --access public
on:
tags: true
```## License [MIT](LICENSE)