# node-github-release

> CLI to create and edit releases on Github (and upload artifacts)

Latest version **0.2.1** (published 2017-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-github-release
pnpm add node-github-release
yarn add node-github-release
bun add node-github-release
```

Provides the command `github-release`.

## 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.2.1 |
| Published | 2017-09-30 |
| First published | 2017-09-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+8 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7 |
| Author | miyajan |
| Maintainers | miyajan |
| Keywords | github |

## Links

- npm: https://www.npmjs.com/package/node-github-release
- Repository: https://github.com/miyajan/node-github-release
- Issues: https://github.com/miyajan/node-github-release/issues
- npm.io page: https://npm.io/package/node-github-release

## Dependencies (4)

- [github](https://npm.io/package/github.md) ^11.0.0
- [commander](https://npm.io/package/commander.md) ^2.11.0
- [get-stdin](https://npm.io/package/get-stdin.md) ^5.0.1
- [simple-git](https://npm.io/package/simple-git.md) ^1.77.0

## Recent versions

- 0.2.1 (latest) — 2017-09-30
- 0.2.0 — 2017-09-30
- 0.1.1 — 2017-09-20
- 0.1.0 — 2017-09-19

## README

# node-github-release

CLI to create and edit releases on Github (and upload artifacts)

[![npm version](https://img.shields.io/npm/v/node-github-release.svg)](https://www.npmjs.com/package/node-github-release)
[![npm downloads](https://img.shields.io/npm/dm/node-github-release.svg)](https://www.npmjs.com/package/node-github-release)
![Node.js Version Support](https://img.shields.io/badge/Node.js%20support-v4,v6,v8-brightgreen.svg)
[![dependencies Status](https://david-dm.org/miyajan/node-github-release/status.svg)](https://david-dm.org/miyajan/node-github-release)
![License](https://img.shields.io/npm/l/node-github-release.svg)

## Acknowledgement

This tool is greatly inspired by [aktau's go implementation](https://github.com/aktau/github-release). Thank you so, so much!

## Requirement

* Node: v4, v6, v8

## Usage

```bash
# set your token
export GITHUB_TOKEN=...

# (optional) you can point to a different GitHub host (for GitHub Enterprise)
# export GITHUB_HOST=github.company.com
# export GITHUB_API_PATH_PREFIX=/api/v3

# help
$ github-release --help

# make your tag and upload
$ git tag ... && git push --tags

# check the current tags and existing releases of the repo on the current directory
$ github-release info
tags:
- 0.1.0 (commit: https://api.github.com/repos/miyajan/node-github-release/commits/...)
releases:
- 0.1.0, name: '...', description: '...', id: ..., tagged: ... , published: ... , draft: ✔, prerelease: ✗
  - artifact: ...

# create a formal release
$ github-release release \
    --tag 0.1.0 \
    --name "..." \
    --description "..." \
    --pre-release
  
# you've made a mistake, but you can edit the release without
# having to delete it first (this also means you can edit without having
# to upload your files again)
$ github-release edit \
    --tag 0.1.0 \
    --name "..." \
    --description "..."

# upload a file
$ github-release upload \
    --tag 0.1.0 \
    --name "..." \
    --file ...

# upload other files...
$ github-release upload ...

# you're not happy with it, so delete it
$ github-release delete \
    --tag 0.1.0
```

## Install

```bash
$ npm install -g node-github-release
```

## License

[MIT](https://github.com/miyajan/node-github-release/blob/master/LICENSE)

## Author

[miyajan](https://github.com/miyajan): Jumpei Miyata miyajan777@gmail.com

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