Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ jobs:

- name: Publish to npm
if: steps.meta.outputs.published == 'false'
run: npm publish dist/npm --access public --provenance
# 路径必须带 ./,否则 npm 会把 dist/npm 解析成 GitHub 仓库 github:dist/npm
run: npm publish ./dist/npm --access public --provenance

- name: Create the GitHub release
if: github.ref_type == 'tag'
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-npm-package.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* - LICENSE
*
* 用法:npm run build:mcp && node scripts/build-npm-package.mjs
* 发布:npm publish dist/npm --access public
* 发布:npm publish ./dist/npm --access public(必须带 ./,否则 npm 会把 dist/npm 当成 GitHub 仓库)
*/

import fs from 'node:fs';
Expand Down
Loading