From b4e1f612e3c0971b98de89e813729ff119568487 Mon Sep 17 00:00:00 2001 From: Jeonghwan Lee Date: Fri, 5 Jun 2026 15:23:35 +0900 Subject: [PATCH] ci(release): make prerelease publish idempotent via action-gh-release `gh release create` hard-fails when a release with the same tag already exists ("a release with the same tag name already exists"), breaking re-runs of the release workflow. Switch to softprops/action-gh-release@v3, matching the rune / rune-mcp release workflows. The action creates the release if missing and updates it otherwise, so re-runs and existing tags no longer fail. --- .github/workflows/release.yaml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f1cae12..7e8ae36 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -202,13 +202,14 @@ jobs: cat manifest.json - name: Create release and upload assets - env: - GH_TOKEN: ${{ github.token }} - working-directory: dist/ - run: | - gh release create "${{ steps.meta.outputs.version }}" \ - --repo "${{ github.repository }}" \ - --title "${{ steps.meta.outputs.version }}" \ - --generate-notes \ - --prerelease \ - manifest.json *.tar.gz *.sha256 + uses: softprops/action-gh-release@v3 + with: + tag_name: ${{ steps.meta.outputs.version }} + name: ${{ steps.meta.outputs.version }} + prerelease: true + generate_release_notes: true + fail_on_unmatched_files: true + files: | + dist/manifest.json + dist/*.tar.gz + dist/*.sha256