From bc5c1a1b312a69931e9eabca8fae8ff9f02a2c85 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 13 Apr 2025 14:09:19 +0000 Subject: build: Allow auto deployment of MCP package to npm --- .github/workflows/mcp.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/mcp.yml diff --git a/.github/workflows/mcp.yml b/.github/workflows/mcp.yml new file mode 100644 index 00000000..b38cfa9a --- /dev/null +++ b/.github/workflows/mcp.yml @@ -0,0 +1,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 }} + -- cgit v1.2.3-70-g09d2