Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/publish-to-npm-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:
workflow_dispatch:
inputs:
npm-publish:
description: 'Whether or not to try to publish to NPM'
description: 'Try to publish to NPM'
default: false
type: boolean
mcp-publish:
description: 'Whether or not to try to publish to MCP registry'
description: 'Try to publish to MCP registry'
default: true
type: boolean

Expand All @@ -22,7 +22,7 @@ permissions:
jobs:
publish-to-npm:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'workflow_dispatch' || inputs.npm-publish }}
if: ${{ (github.event_name != 'workflow_dispatch') || (inputs.npm-publish && always()) }}
steps:
- name: Check out repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
Expand Down Expand Up @@ -52,8 +52,8 @@ jobs:

publish-to-mcp-registry:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'workflow_dispatch' || inputs.mcp-publish }}
needs: publish-to-npm
if: ${{ (github.event_name != 'workflow_dispatch' && needs.publish-to-npm.result == 'success') || (inputs.mcp-publish && always()) }}
steps:
- name: Check out repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
Expand Down