Skip to content

Commit 36d34f0

Browse files
committed
change packages names and fix workflow
1 parent 8902c88 commit 36d34f0

File tree

7 files changed

+40
-19
lines changed

7 files changed

+40
-19
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,44 @@
1-
name: Publish Package to npmjs
1+
name: Publish Packages to npmjs
22
on:
33
release:
44
types: [published]
55
jobs:
6-
build:
6+
build-and-publish:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10-
# Setup .npmrc file to publish to npm
10+
1111
- uses: actions/setup-node@v4
1212
with:
13-
node-version: '20.x'
13+
node-version: '18.x'
1414
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
1720
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
2142
npm publish --access public
2243
env:
2344
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@chkp/genai-mcp-root",
2+
"name": "@chkp/quantum-root",
33
"version": "1.0.0",
44
"description": "Monorepo for Check Point MCP servers",
55
"private": true,

packages/infra/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@chkp/genai-mcp-server-infra",
2+
"name": "@chkp/quantum-infra",
33
"version": "1.0.0",
4-
"description": "Shared infrastructure for Check Point MCP servers",
4+
"description": "Shared infrastructure for Check Point Quantum Management MCP servers",
55
"type": "module",
66
"main": "dist/index.js",
77
"types": "dist/index.d.ts",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
declare module '@chkp/genai-mcp-server-infra';
1+
declare module '@chkp/quantum-infra';

packages/management/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "@chkp/genai-mcp-server-management",
2+
"name": "@chkp/quantum-management-mcp",
33
"version": "1.0.16",
44
"publishConfig": {
55
"registry": "https://artifactory-npm/artifactory/api/npm/npm/"
66
},
77
"bin": {
88
"genai-mcp-server-management": "dist/index.js"
99
},
10-
"description": "Management MCP server for Check Point products (duplicated from access)",
10+
"description": "Official MCP server for Check Point Quantum Management",
1111
"type": "module",
1212
"main": "dist/index.js",
1313
"types": "dist/index.d.ts",
@@ -18,7 +18,7 @@
1818
"build:all": "npm run clean && npm run build"
1919
},
2020
"dependencies": {
21-
"@chkp/genai-mcp-server-infra": "*",
21+
"@chkp/quantum-infra": "*",
2222
"@modelcontextprotocol/sdk": "^1.11.1",
2323
"body-parser": "^1.20.2",
2424
"commander": "^13.1.0",

packages/management/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import { z } from 'zod';
44
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
55
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';
88
import { Command } from 'commander';
99
import { readFileSync } from 'fs';
1010
import { join, dirname } from 'path';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
declare module '@chkp/genai-mcp-server-infra';
1+
declare module '@chkp/quantum-infra';

0 commit comments

Comments
 (0)