From 043c73cf7da9560959337ee6a6f3e2709c4d49a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sun, 19 May 2024 17:20:52 +0200 Subject: [PATCH] ci: properly tag versions of library (#23) Fixes #22 --- .github/release-please-config.json | 21 +++++++++++++++++++-- .github/release-please-manifest.json | 2 +- .github/workflows/release-please.yaml | 2 +- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/release-please-config.json b/.github/release-please-config.json index 965c8a1..f7f8d01 100644 --- a/.github/release-please-config.json +++ b/.github/release-please-config.json @@ -2,11 +2,28 @@ "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", "include-component-in-tag": false, "include-v-in-tag": true, + "release-type": "go", + "group-pull-request-title-pattern": "chore(${branch}): release ${version}", "packages": { ".": { - "release-type": "go", + "component": "cli", "package-name": "hcloud-upload-image", "extra-files": ["internal/version/version.go"] + }, + "hcloudimages": { + "component": "hcloudimages", + "package-name": "hcloudimages", + "include-component-in-tag": true, + "tag-separator": "/" } - } + }, + "plugins": [ + { + "type": "linked-versions", + "groupName": "repo", + "components": [ + "cli", "hcloudimages" + ] + } + ] } diff --git a/.github/release-please-manifest.json b/.github/release-please-manifest.json index 57e0617..f5f8ad9 100644 --- a/.github/release-please-manifest.json +++ b/.github/release-please-manifest.json @@ -1 +1 @@ -{".":"0.2.1"} +{".":"0.2.1","hcloudimages":"0.2.0"} diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 53838a9..666e83f 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v4 + - uses: googleapis/release-please-action@v4 with: token: ${{ secrets.RELEASE_GH_TOKEN }} config-file: .github/release-please-config.json