From f46504955280d824dc33a82c92f8f669fa5b0b09 Mon Sep 17 00:00:00 2001 From: Nikolay Vitkov Date: Wed, 8 Oct 2025 13:22:09 +0200 Subject: [PATCH] chore: fix manual workflow --- .github/workflows/publish-to-npm-on-tag.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-to-npm-on-tag.yml b/.github/workflows/publish-to-npm-on-tag.yml index 6a8a4e95..ceeaa377 100644 --- a/.github/workflows/publish-to-npm-on-tag.yml +++ b/.github/workflows/publish-to-npm-on-tag.yml @@ -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 @@ -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 @@ -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