File tree 7 files changed +40
-19
lines changed
7 files changed +40
-19
lines changed Original file line number Diff line number Diff line change 1
- name : Publish Package to npmjs
1
+ name : Publish Packages to npmjs
2
2
on :
3
3
release :
4
4
types : [published]
5
5
jobs :
6
- build :
6
+ build-and-publish :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- uses : actions/checkout@v4
10
- # Setup .npmrc file to publish to npm
10
+
11
11
- uses : actions/setup-node@v4
12
12
with :
13
- node-version : ' 20 .x'
13
+ node-version : ' 18 .x'
14
14
registry-url : ' https://registry.npmjs.org'
15
- scope : ' @octocat'
16
- - name : Publish SDK
15
+
16
+ - name : Install dependencies
17
+ run : npm install
18
+
19
+ - name : Set version from tag in infra
17
20
run : |
18
- export BRANCH_NAME=${GITHUB_REF#refs/heads/}
19
- export BUILD_JOB_ID=$GITHUB_RUN_ID
20
- npm install
21
+ cd packages/infra
22
+ npm version patch
23
+
24
+ - name : Set version from tag in management
25
+ run : |
26
+ cd packages/management
27
+ npm version patch
28
+
29
+ - name : Build packages
30
+ run : npm run build
31
+
32
+ - name : Publish infra package
33
+ run : |
34
+ cd packages/infra
35
+ npm publish --access public
36
+ env :
37
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
38
+
39
+ - name : Publish management package
40
+ run : |
41
+ cd packages/management
21
42
npm publish --access public
22
43
env :
23
44
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " @chkp/genai-mcp -root" ,
2
+ "name" : " @chkp/quantum -root" ,
3
3
"version" : " 1.0.0" ,
4
4
"description" : " Monorepo for Check Point MCP servers" ,
5
5
"private" : true ,
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " @chkp/genai-mcp-server -infra" ,
2
+ "name" : " @chkp/quantum -infra" ,
3
3
"version" : " 1.0.0" ,
4
- "description" : " Shared infrastructure for Check Point MCP servers" ,
4
+ "description" : " Shared infrastructure for Check Point Quantum Management MCP servers" ,
5
5
"type" : " module" ,
6
6
"main" : " dist/index.js" ,
7
7
"types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change 1
- declare module '@chkp/genai-mcp-server -infra' ;
1
+ declare module '@chkp/quantum -infra' ;
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " @chkp/genai-mcp-server- management" ,
2
+ "name" : " @chkp/quantum- management-mcp " ,
3
3
"version" : " 1.0.16" ,
4
4
"publishConfig" : {
5
5
"registry" : " https://artifactory-npm/artifactory/api/npm/npm/"
6
6
},
7
7
"bin" : {
8
8
"genai-mcp-server-management" : " dist/index.js"
9
9
},
10
- "description" : " Management MCP server for Check Point products (duplicated from access) " ,
10
+ "description" : " Official MCP server for Check Point Quantum Management " ,
11
11
"type" : " module" ,
12
12
"main" : " dist/index.js" ,
13
13
"types" : " dist/index.d.ts" ,
18
18
"build:all" : " npm run clean && npm run build"
19
19
},
20
20
"dependencies" : {
21
- "@chkp/genai-mcp-server -infra" : " *" ,
21
+ "@chkp/quantum -infra" : " *" ,
22
22
"@modelcontextprotocol/sdk" : " ^1.11.1" ,
23
23
"body-parser" : " ^1.20.2" ,
24
24
"commander" : " ^13.1.0" ,
Original file line number Diff line number Diff line change 3
3
import { z } from 'zod' ;
4
4
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js' ;
5
5
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js' ;
6
- import { callManagementApi } from '@chkp/genai-mcp-server -infra' ;
7
- import { Settings } from '@chkp/genai-mcp-server -infra' ;
6
+ import { callManagementApi } from '@chkp/quantum -infra' ;
7
+ import { Settings } from '@chkp/quantum -infra' ;
8
8
import { Command } from 'commander' ;
9
9
import { readFileSync } from 'fs' ;
10
10
import { join , dirname } from 'path' ;
Original file line number Diff line number Diff line change 1
- declare module '@chkp/genai-mcp-server -infra' ;
1
+ declare module '@chkp/quantum -infra' ;
You can’t perform that action at this time.
0 commit comments