ci: refine release-please configuration for monorepo
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 4 Jul 2024 12:32:02 +0000 (14:32 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 4 Jul 2024 12:32:02 +0000 (14:32 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.github/release-please/config.json
.github/release-please/manifest.json

index 475a156e27f65beb73448a8e7623126d68d75288..3fcd0d79829dd531a8c32d1ad0a0d86378ff0e71 100644 (file)
@@ -1,9 +1,24 @@
 {
   "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
-  "release-type": "node",
+  "plugins": ["node-workspace"],
+  "bump-minor-pre-major": true,
+  "bump-patch-for-minor-pre-major": true,
   "include-component-in-tag": false,
   "packages": {
-    ".": {}
+    ".": {
+      "release-type": "node",
+      "component": "simulator",
+      "extra-files": ["sonar-project.properties"]
+    },
+    "ui/web": {
+      "release-type": "node",
+      "component": "ui",
+      "extra-files": ["sonar-project.properties"]
+    },
+    "tests/ocpp-server": {
+      "release-type": "python",
+      "component": "ocpp-server"
+    }
   },
   "changelog-sections": [
     { "type": "feat", "section": "🚀 Features", "hidden": false },
index 631da1f310d14f0ef1b35b923a87090b93c0fab3..e81ff91c70ff944f2ba8feb97eb331fcfb7ec2d5 100644 (file)
@@ -1,3 +1,5 @@
 {
-  ".": "1.3.7"
+  ".": "1.3.7",
+  "ui/web": "0.3.0",
+  "tests/ocpp-server": "0.1.0"
 }