publishable-cli
v1.0.1
Published
Checks if a package is publishable to NPM registry
Downloads
2
Readme
node-publishable-cli
Checks if a package is publishable to NPM registry (with private package support!), Made for CI/CD Workflow of NPM packages.
Sponsor
- Vingle - Vingle, Very Community. Love the things that you love. - We're hiring!
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
- mooyoul/node-publishable - API for this module
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
See full license on mooyoul.mit-license.org