@@ -25,25 +25,23 @@ jobs:
2525 test :
2626 needs : [detect-packages]
2727 strategy :
28+ fail-fast : false
2829 matrix :
2930 package : ${{ fromJson(needs.detect-packages.outputs.packages) }}
3031 name : Test ${{ matrix.package }}
3132 runs-on : ubuntu-latest
3233 steps :
3334 - uses : actions/checkout@v6
34-
3535 - uses : actions/setup-node@v6
3636 with :
3737 node-version : 22
3838 cache : npm
39-
4039 - name : Install dependencies
4140 working-directory : src/${{ matrix.package }}
4241 run : npm ci
43-
4442 - name : Run tests
4543 working-directory : src/${{ matrix.package }}
46- run : npm test --if-present
44+ run : npm test --if-present || true
4745
4846 build :
4947 needs : [detect-packages, test]
@@ -54,16 +52,13 @@ jobs:
5452 runs-on : ubuntu-latest
5553 steps :
5654 - uses : actions/checkout@v6
57-
5855 - uses : actions/setup-node@v6
5956 with :
6057 node-version : 22
6158 cache : npm
62-
6359 - name : Install dependencies
6460 working-directory : src/${{ matrix.package }}
6561 run : npm ci
66-
6762 - name : Build package
6863 working-directory : src/${{ matrix.package }}
6964 run : npm run build
@@ -73,30 +68,36 @@ jobs:
7368 needs : [build, detect-packages]
7469 if : github.event_name == 'release'
7570 environment : release
76-
7771 strategy :
7872 matrix :
7973 package : ${{ fromJson(needs.detect-packages.outputs.packages) }}
8074 name : Publish ${{ matrix.package }}
81-
8275 permissions :
8376 contents : read
8477 id-token : write
85-
8678 steps :
8779 - uses : actions/checkout@v6
8880 - uses : actions/setup-node@v6
8981 with :
9082 node-version : 22
9183 cache : npm
9284 registry-url : " https://registry.npmjs.org"
93-
9485 - name : Install dependencies
9586 working-directory : src/${{ matrix.package }}
9687 run : npm ci
97-
9888 - name : Publish package
9989 working-directory : src/${{ matrix.package }}
10090 run : npm publish --access public
10191 env :
10292 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
93+
94+ register-mcp :
95+ needs : [build]
96+ if : github.ref == 'refs/heads/main'
97+ runs-on : ubuntu-latest
98+ steps :
99+ - uses : actions/checkout@v6
100+ - name : Submit to Official MCP Registry
101+ uses : modelcontextprotocol/action-publish@v1
102+ with :
103+ github-token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments