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' 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"