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

/publishable-cli/

    Package Sidebar

    Install

    npm i publishable-cli

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    85 kB

    Total Files

    7

    Last publish

    Collaborators

    • mooyoul