From: Jérôme Benoit Date: Thu, 4 Jul 2024 14:09:32 +0000 (+0200) Subject: ci: refine release-please configuration X-Git-Tag: ocpp-server@v1.4.0~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=60b14fe6136c6a4ea20836d416ed2f840c8fbdc5;p=e-mobility-charging-stations-simulator.git ci: refine release-please configuration Signed-off-by: Jérôme Benoit --- 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