Skip to content

ci: fix npm provenance URL by cd-ing into package dir#104

Merged
JumpLink merged 1 commit into
mainfrom
ci/fix-npm-provenance-url
Jun 16, 2026
Merged

ci: fix npm provenance URL by cd-ing into package dir#104
JumpLink merged 1 commit into
mainfrom
ci/fix-npm-provenance-url

Conversation

@JumpLink

Copy link
Copy Markdown
Collaborator

npm publish packages/gnome-shell --provenance constructs the git-remote URL incorrectly when given a path argument: it produced ssh://git@github.com/packages/gnome-shell.git instead of the actual repo remote.

Fix: cd packages/gnome-shell && npm publish — npm resolves the git remote from the working directory instead.

npm publish <path> constructs the provenance git-remote URL incorrectly
when the path argument is a subdirectory, yielding ssh://git@github.com/packages/gnome-shell.git
instead of the repo remote. cd + bare `npm publish` resolves git remote
correctly from the working directory.
@JumpLink JumpLink requested review from Totto16, schnz and swsnr as code owners June 16, 2026 19:07
@JumpLink JumpLink merged commit 6745cbd into main Jun 16, 2026
3 checks passed
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