feat: add conditional check for repository in build and npm publish workflows (#236)

Co-authored-by: samanhappy@qq.com <my6051199>
This commit is contained in:
samanhappy
2025-07-22 08:56:50 +08:00
committed by GitHub
parent e507bea2e3
commit ab50c7e9eb
2 changed files with 14 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ on:
jobs:
publish-npm:
runs-on: ubuntu-latest
if: endsWith(github.repository, 'mcphub')
steps:
- name: Checkout
uses: actions/checkout@v4