Skip to content

Commit 47669d3

Browse files
author
Entropy0
committed
ci: add publish-mcp workflow (triggers on mcp/v* tags)
1 parent 0822e4b commit 47669d3

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/publish-mcp.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish @entropy0/mcp to npm
2+
3+
on:
4+
push:
5+
tags:
6+
- "mcp/v*" # trigger: git tag mcp/v0.1.5 && git push --tags
7+
8+
jobs:
9+
publish:
10+
name: Build and publish to npm
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: "20"
22+
registry-url: "https://registry.npmjs.org"
23+
24+
- name: Install dependencies
25+
working-directory: packages/mcp
26+
run: npm install
27+
28+
- name: Build
29+
working-directory: packages/mcp
30+
run: npm run build
31+
32+
- name: Publish to npm
33+
working-directory: packages/mcp
34+
env:
35+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
run: npm publish --access public

0 commit comments

Comments
 (0)