# node-tagit

> Opinionated semver implementation for versioning using git tags with node js

Latest version **0.4.0** (published 2019-08-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install node-tagit
pnpm add node-tagit
yarn add node-tagit
bun add node-tagit
```

Provides the commands `tagit`, `node-tagit`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2019-08-30 |
| First published | 2019-08-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Thiago Ventura |
| Maintainers | serraventura |

## Links

- npm: https://www.npmjs.com/package/node-tagit
- Repository: https://github.com/serraventura/node-tagit
- Homepage: https://github.com/serraventura/node-tagit#readme
- Issues: https://github.com/serraventura/node-tagit/issues
- npm.io page: https://npm.io/package/node-tagit

## Recent versions

- 0.4.0 (latest) — 2019-08-30
- 0.3.0 — 2019-08-29

## README

# node-tagit
Opinionated auto bump SEMVER implementation. Bump your APP versions based in your branch naming convention.

Example
```
feature/WTF-123 merged into master
 - bumps MINOR

bug/WTF-456 merged into master
 - bumps PATCH
```
 - **MAJOR** needs to be bumped manually. More detail on documentation.

## Install

## How to
As soon as your production pipeline is triggered node-tagit CLI can be executed to bump the new version

### CLI

```
tagit
```

### Overring default configurations
```
tagit "my_prod_branch" v1.0.0 "(feat-[0-9]*)" "(bugfix-[0-9]*)" true ./log_folder my_custom_release_tag
```

Arguments
- **"my_prod_branch"** - The name of your production branch - defaults to **master**
- **v1.0.0** - The initial version, the first tag version when there are no previous tags - defaults to **v0.1.0**
- **"(feat-[0-9]*)"** - Regex for your naming convention for features. If your PR title matchs regex MINOR bumps - defaults to **search by constants on the code**
- **"(bugfix-[0-9]*)"** - Regex for your naming convention for bugs. If your PR title matchs regex PATCH bumps - defaults to **search by constants on the code**
- **true** - Generates log files when true - defaults to **false**
- **./log_folder** - log files location - defaults to **./version_logs**
- **my_custom_release_tag** - An extra sequencial tag verison is created by default, you can give a custom name to it - defaults to **release_**

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