0.0.3 • Published 7 years ago
@nhz.io/travis-scoped-publish v0.0.3
@nhz.io/travis-scoped-publish
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
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