We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0822e4b commit 47669d3Copy full SHA for 47669d3
1 file changed
.github/workflows/publish-mcp.yml
@@ -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
30
+ run: npm run build
31
32
+ - name: Publish to npm
33
34
+ env:
35
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36
+ run: npm publish --access public
0 commit comments