Skip to content

fix: publish the platform tarballs with an unambiguous file spec - #49

Merged
nrigaudiere merged 1 commit into
mainfrom
fix/npm-publish-tarball-spec
Dec 3, 2026
Merged

nrigaudiere merged 1 commit into
mainfrom
fix/npm-publish-tarball-spec

Conversation

@nrigaudiere

Copy link
Copy Markdown
Member

Why

npm publish "$tgz" passes a bare relative path, and npm's spec parser (npm-package-arg) resolves an owner/repo-looking string as a GitHub shorthand before checking the filesystem. The publish job therefore failed before any registry call:

npm error command git --no-replace-objects ls-remote ssh://git@github.com/tarballs/lightpanda-browser-linux-arm64-1.0.6.tgz.git
npm error git@github.com: Permission denied (publickey).

Reproduced locally on npm 10.9.2 with the tarball present on disk; the unprefixed form always fails this way, whatever the working directory.

What

Prefix the tarball with ./ so npm parses it as a file spec and publishes the tarball. Verified locally with npm publish ./tarballs/… --dry-run: the packing path runs as expected.

@changeset-bot

changeset-bot Bot commented Dec 3, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ccacde1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@nrigaudiere
nrigaudiere merged commit ac875cc into main Dec 3, 2026
3 checks passed
@nrigaudiere
nrigaudiere deleted the fix/npm-publish-tarball-spec branch December 3, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant