yahoo/npm-auto-version

Name: npm-auto-version

Owner: Yahoo Inc.

Description: Automatically generate new NPM versions based on Git tags when publishing

Created: 2016-05-11 20:30:17.0

Updated: 2018-02-09 15:45:30.0

Pushed: 2016-05-11 21:40:42.0

Homepage: https://www.npmjs.com/package/npm-auto-version

Size: 5

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

NPM Auto Version

npm downloads

This script is used to automatically generate new NPM versions based on Git tags when publishing.

Usage

Recommended contents of your package.json:


"version": "1.0.0",
"scripts": {
    "prepublish": "npm-auto-version",
    "postpublish": "git push origin --tags"
}

This will (under the hood) do the following when you run npm publish:

Requirements

This script requires:

License

Code licensed under the BSD 3-Clause license. See LICENSE file for terms.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.