1.0.1 • Published 6 years ago

publishable-cli v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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