fix: bun publish 通过 ~/.npmrc 配置 registry 认证

This commit is contained in:
claude-code-best
2026-05-20 09:34:59 +08:00
parent c80a6d062b
commit 9afcb398ca

View File

@@ -37,10 +37,14 @@ jobs:
- name: Run tests
run: bun test
- name: Configure npm registry auth
run: |
cat > ~/.npmrc << EOF
//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
EOF
- name: Publish to npm
run: bun publish --access public
env:
BUN_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Generate changelog
id: changelog