fix(ci): use ./ prefix for npm publish paths#25
Merged
Conversation
npm treats `packages/cli-box-darwin-arm64` as a git reference instead of a local directory path. Adding `./` prefix forces npm to resolve it as a relative path, fixing the "git ls-remote ssh://git@github.com/" error. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
🔒 门禁检查结果
Rust 测试覆盖率
前端测试覆盖率
✅ 所有检查通过,可以合入
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
packages/cli-box-darwin-arm64(without./prefix) as a git reference instead of a local directory pathgit ls-remote ssh://git@github.com/packages/cli-box-darwin-arm64.giterror during npm publish./prefix forces npm to resolve the path as a relative directory, fixing the publish errorgit configURL rewriting that was a red herringRoot Cause
npm's path resolution interprets
packages/cli-box-darwin-arm64as a git-style dependency (likegithub:user/repo) rather than a filesystem path. The./prefix explicitly marks it as a relative path.Test Plan
npm publish ./packages/cli-box-darwin-arm64 --dry-runworks locallynpm publish ./packages/cli-box-electron-darwin-arm64 --dry-runworks locallynpm publish ./packages/cli-box-skill --dry-runworks locally🤖 Generated with Claude Code