Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/okunishinishi/node-publish-if-needed
Publish to npm if needed
https://github.com/okunishinishi/node-publish-if-needed
if-needed publish
Last synced: 2 months ago
JSON representation
Publish to npm if needed
- Host: GitHub
- URL: https://github.com/okunishinishi/node-publish-if-needed
- Owner: okunishinishi
- License: mit
- Created: 2018-05-08T01:35:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T19:02:27.000Z (over 1 year ago)
- Last Synced: 2024-07-31T14:09:45.730Z (6 months ago)
- Topics: if-needed, publish
- Language: JavaScript
- Size: 68.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# publish-if-needed
[![Build Status][bd_travis_shield_url]][bd_travis_url]
[![npm Version][bd_npm_shield_url]][bd_npm_url]
[![JS Standard][bd_standard_shield_url]][bd_standard_url][bd_travis_url]: http://travis-ci.org/okunishinishi/node-publish-if-needed
[bd_travis_shield_url]: http://img.shields.io/travis/okunishinishi/node-publish-if-needed.svg?style=flat
[bd_npm_url]: http://www.npmjs.org/package/publish-if-needed
[bd_npm_shield_url]: http://img.shields.io/npm/v/publish-if-needed.svg?style=flat
[bd_standard_url]: http://standardjs.com/
[bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svgPublish npm package if
* Current branch is `master`
* Version in `package.json` is greater than the published one## Install
```bash
npm i publish-if-needed
```## Usage
```bash
# Increment package.json version
npm version patch
# Publish version if needed
npx publish-if-needed```
## Programmatic API
```node
const publishIfNeeded = require('publish-if-needed')publishIfNeeded()
```