Skip to content

Commit 25a4504

Browse files
Simplify the npm publish command
1 parent e7b4d0f commit 25a4504

File tree

3 files changed

+4
-55
lines changed

3 files changed

+4
-55
lines changed

mcp-package/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ From the project root:
204204

205205
```bash
206206
cd mcp-package
207-
./publish.sh # Or: ./publish.sh 1.2.3
207+
npm run publish
208208
```
209209

210-
Or using npm script:
210+
Or run the steps individually:
211211

212212
```bash
213213
cd mcp-package

mcp-package/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"scripts": {
1414
"build": "node build.js",
1515
"test": "node dist/test.js",
16-
"publish:npm": "cd dist && npm publish",
17-
"publish": "./publish.sh",
16+
"prepublishOnly": "npm run build && npm test",
17+
"publish": "npm run build && npm test && cd dist && npm publish",
1818
"release": "standard-version",
1919
"release:minor": "standard-version --release-as minor",
2020
"release:major": "standard-version --release-as major",

mcp-package/publish.sh

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)