Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/guidesmiths/prerelease-ftw
- Owner: guidesmiths
- Created: 2016-10-10T12:07:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-03T11:47:09.000Z (over 7 years ago)
- Last Synced: 2024-12-18T09:45:24.818Z (29 days ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 14
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```