# publish-cli-deprecated

> A simple script for publishing git repositories (formerly `publish-cli`)

Latest version **1.6.0** (published 2021-03-16) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install publish-cli-deprecated
pnpm add publish-cli-deprecated
yarn add publish-cli-deprecated
bun add publish-cli-deprecated
```

Provides the command `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.6.0 |
| Published | 2021-03-16 |
| First published | 2021-03-16 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=5.0.0 |
| Dependencies | 4 |
| Unpacked size | 480.6 KB |
| Known vulnerabilities | 0 (+9 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Igor Silva |
| Maintainers | igor9silva |
| Keywords | publish, push, git |

## Links

- npm: https://www.npmjs.com/package/publish-cli-deprecated
- Repository: https://github.com/igor9silva/publish
- Homepage: https://github.com/igor9silva/publish#readme
- Issues: https://github.com/igor9silva/publish/issues
- npm.io page: https://npm.io/package/publish-cli-deprecated

## Dependencies (4)

- [cli](https://npm.io/package/cli.md) ^0.11.2
- [semver](https://npm.io/package/semver.md) ^5.1.0
- [simple-git](https://npm.io/package/simple-git.md) ^1.28.0
- [keypress-prompt](https://npm.io/package/keypress-prompt.md) ^0.3.2

## Recent versions

- 1.6.0 (latest) — 2021-03-16

## README

# Publish

<p align="center">
<i>Simple Command-Line Interface to automatically bump version and push tags.</i>
</p>
<p align="center">
    <img src="https://raw.githubusercontent.com/igor9silva/publish/master/media/demo.gif" alt="demo"/>
</p>

## Installation

Globally using `npm` (requires node `v5+`)
```bash
npm install -g publish-cli
```

## Usage

Inside a git repository, do:

```bash
publish <version|bumplevel> [options]
```

Examples:

```bash
publish 1.2.3 # explicitly sets version to v1.2.3
```

```bash
publish patch # bumps from v1.2.3 to v1.2.4
```

```bash
publish minor # bumps from v1.2.3 to v1.3.0
```

```bash
publish major # bumps from v1.2.3 to v2.0.0
```

Options:

|  Command  | Shortcut |                                                          Usage                                                         | Default |
|:---------:|:--------:|:----------------------------------------------------------------------------------------------------------------------:|:-------:|
|   --tag   |    -t    | The tag name. Use `%@` to output version. E.g. `publish 1.1.9 -t "%@-beta"` will create a tag called '1.1.9-beta'.     |  `v%@`  |
| --message |    -m    | The commit/tag message. Use `%@` to output version. E.g. `publish 1.1.9 -m "Build v%@"` will commit as 'Build v1.1.9'. |  `v%@`  |
|  --force  |    -f    | Force the commit and tag creation even if in the wrong branch and/or have uncommited changes.                          |  false  |

If your default branch isn't `master` and/or your remote isn't called `origin`, you can override it on `package.json`, under the `publish` key:
```json
{
  "name": "publish-demo",
  "version": "1.5.3",
  "publish": {
    "branch": "other-than-master",
    "remote": "not-origin"
  }
}
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request 😁

## Licensing

This project is under the [JLMK License](https://github.com/igor9silva/JLMK-License), which means you can do whatever you want with the code, **J**ust **L**et **M**e **K**now.

For the full license check out the `LICENSE` file.

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