1.0.4 • Published 7 years ago

auto-package-publish v1.0.4

Weekly downloads
18
License
-
Repository
-
Last release
7 years ago

Auto publishing npm packages

A simple tool to combine with a CI-CD system to auto publish npm packages in the build process.

VERY IMPORTANT

The executable must be in the same folder as the package package.json file since it uses npm publish command which require it.

Usage Example

const publisher = require('auto-package-publisher');

function beforePublishing () {
    return new Promise(function (succCB){
        console.log('Pre work ..........................');
        succCB();
    });
}

function afterPublishing () {
    return new Promise(function (){
        console.log('Post work .........................');
    });
}

publisher(packageJson, beforePublishing, afterPublishing);

You can see it in checkPublish.js file