1.0.0 • Published 9 years ago
solano-npm-publish v1.0.0
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_TOKENenvironment variable is required to be set. This value is used as the_authTokenvalue when createing a.npmrcfile. Sensitive environment variables should be set with thesolano configcommand. - An optional
$NPM_REGISTRYvalue can be provided. The default is//registry.npmjs.org/. - As is, it will only
npm publishwhen 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.
1.0.0
9 years ago