docs(changelog): fix broken version bumping
Standard Version was not bumping the package metadata files as it
should have been. It's not clear to me why, but there is an open
[GitHub issue][1] for documenting this behaviour.
[1]: https://github.com/conventional-changelog/standard-version/issues/506
Change-Id: Ie89a81272fe507a3d2e1cd33c6ac1bdcc8ac3d75
Signed-off-by: Chris Kay <chris.kay@arm.com>
diff --git a/.versionrc.js b/.versionrc.js
index fa6a26f..f699a07 100644
--- a/.versionrc.js
+++ b/.versionrc.js
@@ -70,8 +70,25 @@
"types": types,
"sections": sections,
},
+ "infile": "docs/change-log.md",
+ "skip": {
+ "commit": true,
+ "tag": true
+ },
"bumpFiles": [
{
+ "filename": "package.json",
+ "type": "json"
+ },
+ {
+ "filename": "package-lock.json",
+ "type": "json"
+ },
+ {
+ "filename": "tools/conventional-changelog-tf-a/package.json",
+ "type": "json"
+ },
+ {
"filename": "Makefile",
"updater": {
"readVersion": function (contents) {
diff --git a/package.json b/package.json
index 71632a3..3556dc5 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,7 @@
"private": true,
"scripts": {
"postinstall": "husky install",
- "release": "standard-version -i docs/change-log.md"
+ "release": "standard-version"
},
"devDependencies": {
"@commitlint/cli": "^16.1.0",