Skip to content

Fix npm publish resolving release tarball as a GitHub spec - #10135

Merged
glen-84 merged 1 commit into
mainfrom
gai/release-npm-publish-tarball-path
Jul 22, 2026
Merged

Fix npm publish resolving release tarball as a GitHub spec#10135
glen-84 merged 1 commit into
mainfrom
gai/release-npm-publish-tarball-path

Conversation

@glen-84

@glen-84 glen-84 commented Jul 22, 2026

Copy link
Copy Markdown
Member

Summary

  • publish-npm passed each tarball to npm publish as a bare tarballs/<name>.tgz path. npm reads a slashed argument without a leading ./ as the GitHub owner/repo shorthand, so it ran git ls-remote ssh://git@github.com/tarballs/<name>.tgz and failed with Permission denied (publickey) instead of publishing the local tarball. This broke the 16.6.0-p.1 release after the NuGet packages and Nitro operations had already published.
  • Prefix the argument with ./ so npm resolves it as a local file.

Test plan

  • yaml parse of the workflow and a structural check of the publish phase (gating, ordering, idempotency) pass.
  • Full validation requires a live 16.* release tag (side-effecting) and was not run.

Copilot AI review requested due to automatic review settings July 22, 2026 08:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes the publish-npm workflow step so npm publish treats the generated release tarballs as local files rather than interpreting tarballs/<name>.tgz as GitHub owner/repo shorthand.

Changes:

  • Prefix tarball paths with ./ when invoking npm publish to force local-file resolution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@glen-84
glen-84 merged commit ac354fe into main Jul 22, 2026
148 checks passed
@glen-84
glen-84 deleted the gai/release-npm-publish-tarball-path branch July 22, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants