Browse Source

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>
Chris Kay 2 years ago
parent
commit
ba748f3c35
2 changed files with 18 additions and 1 deletions
  1. 17 0
      .versionrc.js
  2. 1 1
      package.json

+ 17 - 0
.versionrc.js

@@ -70,7 +70,24 @@ module.exports = {
         "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": {

+ 1 - 1
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",