Checks if a package is publishable to NPM registry (with private package support!), Made for CI/CD Workflow of NPM packages.
$ npm install publishable-cli
$ 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."
- mooyoul/node-publishable - API for this module
- Fixed broken package deployment
- Verison Bump
- Initial commit
DEBUG environment variable to
You will be able to see debug messages on your console.
$ env DEBUG='publishable' node your-app.js
$ npm run test
$ npm run lint # Check lint
$ npm run build
See full license on mooyoul.mit-license.org