From 60b14fe6136c6a4ea20836d416ed2f840c8fbdc5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 4 Jul 2024 16:09:32 +0200 Subject: [PATCH] ci: refine release-please configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/release-please/config.json | 7 ++++--- .github/workflows/release-please.yml | 2 +- sonar-project.properties | 4 +++- ui/web/sonar-project.properties | 4 +++- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/release-please/config.json b/.github/release-please/config.json index 7ae8b4b0..ef000b94 100644 --- a/.github/release-please/config.json +++ b/.github/release-please/config.json @@ -1,5 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "release-type": "node", "bump-minor-pre-major": true, "bump-patch-for-minor-pre-major": true, "include-component-in-tag": false, @@ -11,12 +12,12 @@ "extra-files": ["sonar-project.properties"] }, "ui/web": { - "component": "ui" + "component": "ui", + "extra-files": ["sonar-project.properties"] }, "tests/ocpp-server": { "release-type": "python", - "component": "ocpp-server", - "extra-files": ["sonar-project.properties"] + "component": "ocpp-server" } }, "plugins": [ diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 7e386fec..67d425b9 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -14,7 +14,7 @@ jobs: with: config-file: .github/release-please/config.json manifest-file: .github/release-please/manifest.json - - name: tag major and minor versions + - name: Create tags for major and minor versions if: ${{ steps.release.outputs.release_created }} run: | git config user.name github-actions[bot] diff --git a/sonar-project.properties b/sonar-project.properties index 77a1dd11..e2c23a0f 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -3,7 +3,9 @@ sonar.organization=sap-1 # This is the name and version displayed in the SonarCloud UI. sonar.projectName=e-mobility-charging-stations-simulator -sonar.projectVersion=1.3.7 # x-release-please-version +# x-release-please-start-version +sonar.projectVersion=1.3.7 +# x-release-please-end # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. sonar.sources=src diff --git a/ui/web/sonar-project.properties b/ui/web/sonar-project.properties index 0f8e3980..0dce01e6 100644 --- a/ui/web/sonar-project.properties +++ b/ui/web/sonar-project.properties @@ -3,7 +3,9 @@ sonar.organization=sap-1 # This is the name and version displayed in the SonarCloud UI. sonar.projectName=e-mobility-charging-stations-simulator-webui -sonar.projectVersion=0.3.0 # x-release-please-version +# x-release-please-start-version +sonar.projectVersion=0.3.0 +# x-release-please-end # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. sonar.sources=src -- 2.34.1