Skip to content

Commit b84db18

Browse files
dhaneshclaude
andcommitted
fix(release): use semantic-release-action to properly expose outputs
The build job was never running because `npx semantic-release` doesn't set GitHub Actions step outputs. The condition `new_release_published == 'true'` was always false since the output was never set. Switch to cycjimmy/semantic-release-action@v4 which properly exposes: - new_release_published - new_release_version - new_release_git_tag This fixes CLI binary generation for releases v2.1.0 through v2.5.0 which all shipped without binaries. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8b03874 commit b84db18

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -62,25 +62,19 @@ jobs:
6262
with:
6363
node-version: 20
6464

65-
- name: Install semantic-release
66-
run: |
67-
npm install -g semantic-release \
68-
@semantic-release/changelog \
69-
@semantic-release/git \
70-
@semantic-release/github \
71-
conventional-changelog-conventionalcommits
72-
7365
- name: Run semantic-release
7466
id: semantic
67+
uses: cycjimmy/semantic-release-action@v4
68+
with:
69+
semantic_version: 24
70+
extra_plugins: |
71+
@semantic-release/changelog
72+
@semantic-release/git
73+
@semantic-release/github
74+
conventional-changelog-conventionalcommits
75+
dry_run: ${{ inputs.dry_run == 'true' }}
7576
env:
7677
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77-
run: |
78-
if [ "${{ inputs.dry_run }}" = "true" ]; then
79-
echo "Running in dry-run mode..."
80-
npx semantic-release --dry-run
81-
else
82-
npx semantic-release
83-
fi
8478

8579
build:
8680
name: Build CLI Binaries

0 commit comments

Comments
 (0)