ci(release): replace softprops/action-gh-release with gh cli - #17
Merged
Conversation
Org GitHub Actions allowlist blocks softprops/action-gh-release@v2, which made the v0.5.1 release run fail before any step executed. Switch to the runner's bundled gh CLI to avoid the third-party action and make the release upload idempotent: if the tag already has a release we re-upload the asset with --clobber, otherwise we create a new release with generated notes. Also add .worktrees/ to .gitignore so locally created worktrees stay untracked.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the release automation to stop depending on softprops/action-gh-release and instead use the runner-provided GitHub CLI, while also ignoring the repository's local temporary worktree directory. It fits the codebase's release workflow by keeping artifact publishing within the org's allowed GitHub Actions/tooling footprint.
Changes:
- Replace the third-party release action in
.github/workflows/release.ymlwith a shell-basedgh release view/upload/createflow. - Make release asset uploads rerunnable by using
gh release upload --clobberwhen the release already exists. - Ignore
.worktrees/in.gitignoreto keep documented temporary worktrees untracked.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.gitignore |
Adds ignore rule for the repo’s temporary worktree directory. |
.github/workflows/release.yml |
Reworks release publishing to use gh CLI instead of a third-party action. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
astykyj
approved these changes
May 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
softprops/action-gh-release@v2is not on the org's allowed-actions list.ghCLI so the release workflow only depends on actions the org already permits (actions/*plusoven-sh/setup-bun).--clobberwhen the tag already has a release, otherwise create a new release with auto-generated notes.Key changes
gh release view/upload --clobber/create --generate-notesflow guarded byset -euo pipefail.GH_TOKEN: \${{ github.token }}is scoped to the step; the existingcontents: writejob permission is reused..worktrees/so locally-created git worktrees stay untracked.Test plan
workflow_dispatch) and confirm the job starts (no "workflow file issue" preflight failure).Stave-macOS.zipattached and auto-generated notes populated.--clobberinstead of erroring.🤖 Generated with Claude Code