Skip to content

Commit 9e4513b

Browse files
committed
fix: skip prepublishOnly script for GitHub Packages publish
The integration tests fail when package name is changed to @Mearman scope. Using --ignore-scripts flag to skip tests during GitHub Packages publish since the package was already tested and built during the npm publish.
1 parent e3b3587 commit 9e4513b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/semantic-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ jobs:
9898
run: |
9999
# Update package name for GitHub Packages
100100
npm pkg set name="@${{ github.repository_owner }}/mcp-wayback-machine"
101-
npm publish --access public --provenance
101+
# Skip prepublishOnly script to avoid running tests with modified package name
102+
npm publish --access public --provenance --ignore-scripts
102103
env:
103104
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"description": "MCP server for interacting with the Wayback Machine without API keys",
55
"main": "dist/index.js",
66
"type": "module",
7-
"bin": "dist/index.js",
7+
"bin": {
8+
"mcp-wayback-machine": "dist/index.js"
9+
},
810
"scripts": {
911
"build": "tsc",
1012
"dev": "tsx watch src/index.ts",

0 commit comments

Comments
 (0)