update-changelog
v1.0.2
Published
Update [Unreleased] in CHANGELOG.md to current package version.
Downloads
2,131
Readme
update-changelog
Update [Unreleased] in CHANGELOG.md to current package version.
Usage
- Install with npm
$ npm install --save-dev update-changelog
- Add script
version
topackage.json
.
"scripts": {
"version": "update-changelog && git add CHANGELOG.md"
}
Example
$ git tag
v1.0.0
$ npm version minor
v1.1.0
...
$ git tag
v1.0.0
v1.1.0
$ git diff HEAD^
[master]> git diff HEAD^
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b799e02..374de36 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,7 +2,7 @@
All notable changes to thpris oject will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
-## [Unreleased]
+## [1.1.0] - 2016-02-29
### Added
- Feature1
- Feature2
diff --git a/package.json b/package.json
index 506db12..df0a2e4 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "example",
- "version": "1.0.0",
+ "version": "1.1.0",
"description": "Example package",
"main": "index.js",
"scripts": {