npm

Need private packages and team management tools?Check out npm Orgs. »

publishable-cli

1.0.1 • Public • Published

node-publishable-cli

Build Status Dependency Status devDependency Status MIT license

Checks if a package is publishable to NPM registry (with private package support!), Made for CI/CD Workflow of NPM packages.

Sponsor

Install

$ npm install publishable-cli

Usage

$ publishable && echo "^0^ this package can be published to npm registry"
$ publishable || echo "T_T this pacakge shouldn't be published to npm registry..."

For CI/CD Workflows:

$ publishable && npm publish # publish only given spec haven't published to registry 
$ publishable && npm publish || echo "Package does not seems publishable. Skipping publish step."

Related

Changelog

1.0.1

  • Fixed broken package deployment

1.0.0

  • Verison Bump

0.1.0

  • Initial commit

Debugging

Set DEBUG environment variable to publishable. You will be able to see debug messages on your console.

$ env DEBUG='publishable' node your-app.js

Testing

$ npm run test

... OR

$ npm run lint # Check lint 

Build

$ npm run build

License

MIT

See full license on mooyoul.mit-license.org

install

npm i publishable-cli

Downloadsweekly downloads

1

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability