Skip to content

Commit b1877f8

Browse files
committed
Add npm publish workflow and prepare package for public release
Add GitHub Actions workflow to publish to npmjs.org on version tags. Add LICENSE, keywords, author, engines, and files whitelist to package.json.
1 parent 1843188 commit b1877f8

3 files changed

Lines changed: 69 additions & 4 deletions

File tree

.github/workflows/npm.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish npm Package
2+
3+
on:
4+
push:
5+
tags: ['v*']
6+
workflow_dispatch:
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 24
20+
registry-url: https://registry.npmjs.org
21+
22+
- run: npm ci
23+
- run: cd ui && npm ci
24+
- run: npm run build
25+
- run: npm publish
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

LICENSE

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ISC License
2+
3+
Copyright (c) 2026 prih
4+
5+
Permission to use, copy, modify, and/or distribute this software for any
6+
purpose with or without fee is hereby granted, provided that the above
7+
copyright notice and this permission notice appear in all copies.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15+
PERFORMANCE OF THIS SOFTWARE.

package.json

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "mcp-graph-memory",
2+
"name": "@prih/mcp-graph-memory",
33
"version": "1.0.3",
44
"description": "MCP server for semantic graph memory from markdown files",
55
"main": "dist/cli/index.js",
@@ -19,11 +19,34 @@
1919
},
2020
"repository": {
2121
"type": "git",
22-
"url": "git@github.com:prih/mcp-graph-memory.git"
22+
"url": "https://github.com/prih/mcp-graph-memory.git"
2323
},
24-
"keywords": [],
25-
"author": "",
24+
"homepage": "https://github.com/prih/mcp-graph-memory",
25+
"bugs": "https://github.com/prih/mcp-graph-memory/issues",
26+
"keywords": [
27+
"mcp",
28+
"model-context-protocol",
29+
"graph",
30+
"memory",
31+
"semantic-search",
32+
"knowledge-graph",
33+
"embeddings",
34+
"documentation",
35+
"code-indexing"
36+
],
37+
"author": "prih <prihmail@gmail.com>",
2638
"license": "ISC",
39+
"engines": {
40+
"node": ">=20"
41+
},
42+
"files": [
43+
"dist/",
44+
"ui/dist/",
45+
"README.md"
46+
],
47+
"publishConfig": {
48+
"access": "public"
49+
},
2750
"dependencies": {
2851
"@huggingface/transformers": "^3.8.1",
2952
"@modelcontextprotocol/sdk": "^1.27.1",

0 commit comments

Comments
 (0)