aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/mcp.yml
blob: b38cfa9a89f143cdb72b0211cebe038d966680d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: Publish MCP Package to npm
on:
  push:
    tags:
      # This is a glob pattern not a regex
      - 'mcp/v[0-9]+.[0-9]+.[0-9]+'
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Setup
        uses: ./tooling/github/setup

      - name: Build MCP
        run: pnpm build
        working-directory: apps/mcp

      - run: pnpm publish --access public --no-git-checks
        working-directory: apps/mcp
        env:
          NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}