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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This script is used to automatically generate new NPM versions based on Git tags when publishing.
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
:
M.N.*
M.N.P
M.N.P
vM.N.P
npm publish
)This script requires:
$PATH
|
Code licensed under the BSD 3-Clause license. See LICENSE file for terms.