Skip to content

Commit 88e5c5b

Browse files
王璨claude
andcommitted
fix: improve npm publish diagnostics
Add npm auth checks before publish and normalize repository metadata so npm publishing failures are easier to diagnose in CI. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent b3074e8 commit 88e5c5b

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ jobs:
5454
with:
5555
node-version: "22"
5656
registry-url: "https://registry.npmjs.org"
57+
- name: Verify npm authentication
58+
run: |
59+
npm whoami
60+
npm ping
61+
env:
62+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5763
- run: cd dist-standalone && npm publish --access public
5864
env:
5965
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"repository": {
2727
"type": "git",
28-
"url": "https://github.com/wangcan26/dscode"
28+
"url": "git+https://github.com/wangcan26/dscode.git"
2929
},
3030
"keywords": [
3131
"deepseek",

0 commit comments

Comments
 (0)