# @tepez/npm-publish-by-tag

> Script for publishing to NPM based on tagged git commit

Latest version **0.1.5** (published 2019-02-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install @tepez/npm-publish-by-tag
pnpm add @tepez/npm-publish-by-tag
yarn add @tepez/npm-publish-by-tag
bun add @tepez/npm-publish-by-tag
```

Provides the command `npm-publish-by-tag`.

## 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.1.5 |
| Published | 2019-02-06 |
| First published | 2017-10-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tom Tepez Yam |
| Maintainers | tomyam1 |

## Links

- npm: https://www.npmjs.com/package/@tepez/npm-publish-by-tag
- Repository: https://github.com/tepez/should-publish-to-npm
- Homepage: https://github.com/tepez/should-publish-to-npm#readme
- Issues: https://github.com/tepez/should-publish-to-npm/issues
- npm.io page: https://npm.io/package/@tepez/npm-publish-by-tag

## Dependencies (5)

- [execa](https://npm.io/package/execa.md) ^0.8.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [semver](https://npm.io/package/semver.md) ^5.4.1
- [read-pkg-up](https://npm.io/package/read-pkg-up.md) ^2.0.0
- [latest-version](https://npm.io/package/latest-version.md) ^3.1.0

## Recent versions

- 0.1.5 (latest) — 2019-02-06
- 0.1.4 — 2019-02-05
- 0.1.3 — 2017-10-10
- 0.1.2 — 2017-10-10
- 0.1.1 — 2017-10-10
- 0.1.0 — 2017-10-10

## README

# npm-publish-by-tag
> Script for publishing to NPM based on tagged git commit

## Usage

1. Update the version in the `package.json` file and commit the change.
1. Tag the commit with a semver version.
1. Push changes, with the tags

1. On the CI server:

```
npm install @tepez/npm-publish-by-tag@latest
node node_modules/@tepez/npm-publish-by-tag
```

## Notes
* This tool should be used with [npm update](https://docs.npmjs.com/cli/update) or an alternative such as [np](https://github.com/sindresorhus/np).

If you use np, make sure to include the `--no-publish` flag since the publishing is going to be done from the CI server.

For instance, this package uses np when calling `npm run update`.

* Initial publish to NPM has to be done manually.

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