From 1c7cf49e283fda29d9cf29018e981bb9f51fbe69 Mon Sep 17 00:00:00 2001 From: Claude Bot Date: Tue, 28 Apr 2026 23:29:46 +0800 Subject: [PATCH 1/2] fix: use corepack to update npm for OIDC support Restore registry-url (required for OIDC token exchange) and replace the broken 'npm install -g npm@latest' with corepack to upgrade npm. npm@latest has a MODULE_NOT_FOUND bug (missing promise-retry) as of 2026-04-28. corepack bypasses the corrupted npm binary to install a clean version. npm 11+ is required for proper OIDC auto-detection in GitHub Actions. Co-Authored-By: Claude Sonnet 4.5 --- .github/workflows/release.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a758216..8889389 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,9 +23,14 @@ jobs: uses: actions/setup-node@v4 with: node-version: '22' + registry-url: 'https://registry.npmjs.org' cache: 'npm' - # Trusted Publisher (OIDC): 不设置 registry-url,避免 .npmrc - # 中生成空 _authToken 干扰 npm 的 OIDC 自动检测 + + - name: Update npm for OIDC support + run: | + corepack enable npm + corepack prepare npm@latest --activate + npm --version - name: Install dependencies run: npm ci @@ -67,7 +72,7 @@ jobs: echo "Publishing stable version $VERSION" npm publish --provenance fi - # Trusted Publisher: npm CLI 自动通过 OIDC 认证,无需 NODE_AUTH_TOKEN + # Trusted Publisher: npm 11+ 自动通过 OIDC 认证,无需 NODE_AUTH_TOKEN - name: Create GitHub Release if: steps.version.outputs.should_publish == 'true' From 358b8907d22d56777b9f2b29d24eb69c3bd696bc Mon Sep 17 00:00:00 2001 From: Claude Bot Date: Tue, 28 Apr 2026 23:29:46 +0800 Subject: [PATCH 2/2] chore: bump version to 1.6.7 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 67f2cc4..b26e559 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@maplezzk/mcps", - "version": "1.6.6", + "version": "1.6.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@maplezzk/mcps", - "version": "1.6.6", + "version": "1.6.7", "license": "ISC", "dependencies": { "@modelcontextprotocol/sdk": "^1.25.3", diff --git a/package.json b/package.json index 6310cf0..a02b148 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@maplezzk/mcps", - "version": "1.6.6", + "version": "1.6.7", "description": "A CLI to manage and use MCP servers", "publishConfig": { "access": "public"