auto-package-publish

1.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i auto-package-publish

Weekly Downloads

6

Version

1.0.4

License

none

Last publish

Collaborators

  • shmilky