Skip to content

Commit 8a8d353

Browse files
committed
fix: use lowercase package name and correct registry for GitHub Packages
- Package names in npm must be lowercase, changed @Mearman to @Mearman - Explicitly set registry to npm.pkg.github.com for GitHub Packages publish - This ensures the scoped package is published to the correct registry
1 parent 22b4889 commit 8a8d353

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/semantic-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ jobs:
9696
- name: Publish to GitHub Packages
9797
if: steps.semantic-release.outputs.new-release-published == 'true'
9898
run: |
99-
# Update package name for GitHub Packages
100-
npm pkg set name="@${{ github.repository_owner }}/mcp-wayback-machine"
99+
# Update package name for GitHub Packages (must be lowercase)
100+
npm pkg set name="@mearman/mcp-wayback-machine"
101+
# Ensure we're publishing to GitHub Packages registry
102+
npm config set registry https://npm.pkg.github.com/
101103
# Skip prepublishOnly script to avoid running tests with modified package name
102104
npm publish --access public --provenance --ignore-scripts
103105
env:

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)