Skip to content

IsaacChapman/isaacchapman-npm-publish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

solano-npm-publish

Easy publishing of NPM packages from Solano CI builds.

You can either add the solano-npm-publish script to your repository, or since <repo-root>/node_modules/.bin is already in the $PATH on Solano CI workers, you can npm install it and issue a solano-npm-publish command to publish your NPM package repositories. Typically this is done in post_build setup hook like the following:

hooks:
  post_build: npm install solano-npm-publish && solano-npm-publish 

Notes:

  • A $NPM_TOKEN environment variable is required to be set. This value is used as the _authToken value when createing a .npmrc file. Sensitive environment variables should be set with the solano config command.
  • An optional $NPM_REGISTRY value can be provided. The default is //registry.npmjs.org/.
  • As is, it will only npm publish when all Solano CI tests have passed, it is a build on the "master" branch, the build was initiated by a webhook (including Github "push" event webhooks), and if the commit has a suitable semantic version tag.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages