Skip to content

Commit b45d7a2

Browse files
rom1504claude
andauthored
Fix publish condition for npm-publish v4 (#173)
npm-publish v4 outputs empty string (not 'none') when version is unchanged. The old condition != 'none' was always true, causing Create Release to run and fail on every non-release commit. Co-authored-by: rom1504 <rom1504@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3759d43 commit b45d7a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- id: publish
2424
uses: JS-DevTools/npm-publish@v4
2525
- name: Create Release
26-
if: steps.publish.outputs.type != 'none'
26+
if: ${{ steps.publish.outputs.type }}
2727
id: create_release
2828
uses: actions/create-release@v1
2929
env:

0 commit comments

Comments
 (0)