Skip to content

nhz-io/travis-scoped-publish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published