Skip to content

Commit b7b4408

Browse files
rom1504claude
andauthored
Fix publish condition for npm-publish v4 (#159)
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 8b53b02 commit b7b4408

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish.yml

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

0 commit comments

Comments
 (0)