Repository navigation
Publish the release tarball as a file path, not a package spec - #35
Conversation
The v0.2.0 release failed at the npm step:
npm error command git --no-replace-objects ls-remote \
ssh://[email protected]/candidate/urlcode-0.2.0.tgz.git
npm error [email protected]: Permission denied (publickey).
npm read "candidate/urlcode-0.2.0.tgz" as the GitHub shorthand
owner/repo and tried to clone it. Only a path starting with ./ ../ /
or ~/ is parsed as a local tarball, so the argument is now
"./candidate/urlcode-$VERSION.tgz".
Reproduced outside CI before and after: with the bare path npm attempts
the SSH clone, and with ./ it packs and reports the tarball normally.
A test extracts the publish argument from the workflow and requires a
file-path form. Reverting the fix makes it fail with the offending
argument named, so the guard covers the actual defect rather than the
literal string. It reads only the command, never a comment that
mentions npm publish.
Nothing else in the release changed. The GitHub release for v0.2.0 was
created before this step ran, so v0.2.0 exists on GitHub with no npm
counterpart; getting a package published needs either that tag and
release removed and re-pushed, or a new version.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WrwFcAcntyBBSk21irvgAV
|
It is a V8 crash, not a failing assertion. All eleven tests in That is V8's own internal consistency check failing while unregistering a WASM allocation — the QuickJS-WASM sandbox being torn down. Node exits non-zero, so Why it is not this change. The diff is one string in
No fix is being ported, because there is nothing here to fix: the crash is below the JavaScript layer. Worth separating from this PR: a V8 Generated by Claude Code |
Problem and change
The v0.2.0 release run failed at the npm step:
The token and the variable were both fine. npm read
candidate/urlcode-0.2.0.tgzas the GitHub shorthandowner/repoand tried to clone it over SSH. npm parses an argument as a local tarball only when it starts with./,../,/or~/; anything else containing a slash is a package spec. The fix is one prefix:Reproduced outside CI first, both directions:
Verification
The new test pulls the publish argument out of the workflow and requires a file-path form. I confirmed it covers the real defect rather than a literal string — reverting the fix makes it fail and name the argument:
It reads only the command line, never a comment that mentions
npm publish— my first attempt matched theid-token: write # ... npm publish --provenancecomment and passed vacuously, which is why it asserts exactly one publish command.Compatibility and security
State this leaves the release in, which is not clean and needs a decision: the
gh release createstep runs before the npm step and succeeded, so the v0.2.0 GitHub release exists but nothing was published to npm, and theurlcode.rbattached to it points at a registry URL that 404s. Re-running that run will not help: a re-run replays the workflow as it was at the tagged commit, so it would use the unfixed command and then fail on the already-created release. Getting[email protected]onto npm needs either the v0.2.0 tag and release deleted and the tag re-pushed after this merges, or a fresh version. There are also two dead tags,v0.1.1andv0.1.2, both pointing at the pre-bump commit from earlier failed attempts.🤖 Generated with Claude Code
https://claude.ai/code/session_01WrwFcAcntyBBSk21irvgAV
Generated by Claude Code