preversion
Version:
A tiny cli helps you to publish alpha/beta versions to npm before releasing the final latest version
101 lines (70 loc) • 5.39 kB
Markdown
# preversion
[](https://github.com/un-ts/preversion/actions/workflows/ci.yml)
[](https://codecov.io/gh/un-ts/preversion)
[](https://github.com/plantain-00/type-coverage)
[](https://www.npmjs.com/package/preversion)
[](https://github.com/un-ts/preversion/releases)
[](https://conventionalcommits.org)
[](https://renovatebot.com)
[](https://standardjs.com)
[](https://github.com/prettier/prettier)
[](https://github.com/changesets/changesets)
> A tiny cli helps you to publish alpha/beta versions to npm before releasing the final latest version
## TOC <!-- omit in toc -->
- [Usage](#usage)
- [Install](#install)
- [CLI](#cli)
- [API](#api)
- [CI](#ci)
- [GitHub Actions](#github-actions)
- [Sponsors and Backers](#sponsors-and-backers)
- [Sponsors](#sponsors)
- [Backers](#backers)
- [Changelog](#changelog)
- [License](#license)
## Usage
### Install
```sh
# pnpm
pnpm add -D preversion
# yarn
yarn add -D preversion
# npm
npm i -D preversion
```
### CLI
```log
Usage: preversion [options]
A tiny cli helps you to publish alpha/beta versions to npm before releasing the final latest version
Options:
-V, --version output the version number
-b, --branch [string] optional specified branch to be pushed after releasing successfully
-m, --message [string] optional commit message when `branch` option enabled (default: "chore: release preversion v{{version}}")
-v, --preversion [string] optional specified version to be released
-t, --tag [string] optional specified npm tag to be released
-h, --help display help for command
```
### API
```ts
import { getPreversionTag, getPreversion, preversion } from 'preversion'
```
### CI
#### GitHub Actions
[.github/workflows/release-beta.yml](https://github.com/un-ts/preversion/blob/main/.github/workflows/release-beta.yml)
## Sponsors and Backers
[](https://github.com/sponsors/JounQin)
### Sponsors
| 1stG | RxTS | UnTS |
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| [](https://opencollective.com/1stG) | [](https://opencollective.com/rxts) | [](https://opencollective.com/unts) |
### Backers
| 1stG | RxTS | UnTS |
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| [](https://opencollective.com/1stG) | [](https://opencollective.com/rxts) | [](https://opencollective.com/unts) |
## Changelog
Detailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).
## License
[MIT][] © [JounQin][]@[1stG.me][]
[1stg.me]: https://www.1stg.me
[jounqin]: https://GitHub.com/JounQin
[mit]: http://opensource.org/licenses/MIT