File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 77 workflow_dispatch :
88 inputs :
99 npm-publish :
10- description : ' Whether or not to try to publish to NPM'
10+ description : ' Try to publish to NPM'
1111 default : false
1212 type : boolean
1313 mcp-publish :
14- description : ' Whether or not to try to publish to MCP registry'
14+ description : ' Try to publish to MCP registry'
1515 default : true
1616 type : boolean
1717
@@ -22,7 +22,7 @@ permissions:
2222jobs :
2323 publish-to-npm :
2424 runs-on : ubuntu-latest
25- if : ${{ github.event_name != 'workflow_dispatch' || inputs.npm-publish }}
25+ if : ${{ ( github.event_name != 'workflow_dispatch') || ( inputs.npm-publish && always()) }}
2626 steps :
2727 - name : Check out repository
2828 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5252
5353 publish-to-mcp-registry :
5454 runs-on : ubuntu-latest
55- if : ${{ github.event_name != 'workflow_dispatch' || inputs.mcp-publish }}
5655 needs : publish-to-npm
56+ if : ${{ (github.event_name != 'workflow_dispatch' && needs.publish-to-npm.result == 'success') || (inputs.mcp-publish && always()) }}
5757 steps :
5858 - name : Check out repository
5959 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
You can’t perform that action at this time.
0 commit comments