Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guidesmiths/prerelease-ftw

Generates a version with prerelease suffix based on the current package version and command line parameters.
https://github.com/guidesmiths/prerelease-ftw

Last synced: 22 days ago
JSON representation

Generates a version with prerelease suffix based on the current package version and command line parameters.

Awesome Lists containing this project

README

        

# Pre-Release FTW!
[![Build Status](https://img.shields.io/travis/guidesmiths/prerelease-ftw/master.svg)](https://travis-ci.org/guidesmiths/prerelease-ftw)

Generates a version with prerelease suffix based on the current package version and command line parameters. Useful when publishing modules from CI servers.

### Install
```
npm i --save-dev prerelease-ftw
```
### package.json
```json
{
"version": "3.2.0",
"scripts": {
"prerelease": "prerelease"
}
}
```
### Run
```
npm --silent run prerelease -- build 20
```
### Output
```
3.2.0-build.20
```
### Continuous Integration FTW!
```
npm --no-git-tag-version version $(npm --silent run prerelease -- build ${BUILD_NUMBER})
npm publish
```