diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1e73eac..a758216 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,8 +23,9 @@ 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: Install dependencies run: npm ci @@ -66,8 +67,7 @@ jobs: echo "Publishing stable version $VERSION" npm publish --provenance fi - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + # Trusted Publisher: npm CLI 自动通过 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 b74aef4..67f2cc4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@maplezzk/mcps", - "version": "1.6.5", + "version": "1.6.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@maplezzk/mcps", - "version": "1.6.5", + "version": "1.6.6", "license": "ISC", "dependencies": { "@modelcontextprotocol/sdk": "^1.25.3", diff --git a/package.json b/package.json index 69e4439..6310cf0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@maplezzk/mcps", - "version": "1.6.5", + "version": "1.6.6", "description": "A CLI to manage and use MCP servers", "publishConfig": { "access": "public"