Skip to content

Commit a671806

Browse files
committed
fix(ci): make Publish step handle workflow_dispatch events
The Publish shell only branched on pull_request/push, so the manual dispatch run exited 0 without publishing anything — a silent no-op.
1 parent 972bfeb commit a671806

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
@@ -140,7 +140,7 @@ jobs:
140140
run: |
141141
if [ '${{ github.event_name }}' == 'pull_request' ] ; then
142142
pnpm publish --filter=taro-ui --registry=https://registry.npmjs.org/ --publish-branch=next
143-
elif [ '${{ github.event_name }}' == 'push' ] ; then
143+
elif [ '${{ github.event_name }}' == 'push' ] || [ '${{ github.event_name }}' == 'workflow_dispatch' ] ; then
144144
pnpm publish --filter=taro-ui --registry=https://registry.npmjs.org/ --publish-branch=${{ github.ref_name }} ${{ env.PUBLISH_PARAMS }}
145145
fi
146146
env:

0 commit comments

Comments
 (0)