# auto-package-publish

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

Latest version **1.0.4** (published 2017-08-14) · 0 weekly downloads

## Install

```sh
npm install auto-package-publish
pnpm add auto-package-publish
yarn add auto-package-publish
bun add auto-package-publish
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2017-08-14 |
| First published | 2017-08-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | shmilky |

## Links

- npm: https://www.npmjs.com/package/auto-package-publish
- npm.io page: https://npm.io/package/auto-package-publish

## Dependencies (3)

- [bluebird](https://npm.io/package/bluebird.md) ^3.5.0
- [node-cmd](https://npm.io/package/node-cmd.md) ^3.0.0
- [compare-versions](https://npm.io/package/compare-versions.md) ^3.0.1

## Recent versions

- 1.0.4 (latest) — 2017-08-14
- 1.0.3 — 2017-08-14
- 1.0.2 — 2017-08-14
- 1.0.1 — 2017-08-14
- 1.0.0 — 2017-08-14
- 0.0.1 — 2017-08-14

## README

## 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
```javascript
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

---
_Source: https://npm.io/package/auto-package-publish · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
