Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nhz-io/travis-scoped-publish


https://github.com/nhz-io/travis-scoped-publish

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        

# @nhz.io/travis-scoped-publish



NPM Version



Travis Build


License



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_js

deploy:
- 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)