Skip to content

fix(release): give the platform packages a repository field - #20

Merged
alleneubank merged 1 commit into
mainfrom
fix/provenance-repository-field
Aug 21, 2026
Merged

alleneubank merged 1 commit into
mainfrom
fix/provenance-repository-field

Conversation

@alleneubank

Copy link
Copy Markdown
Owner

The v0.3.1 publish failed:

422 Unprocessable Entity - Error verifying sigstore provenance bundle:
Failed to validate repository information: package.json: "repository.url"
is "", expected to match "https://github.com/alleneubank/linear-cli"
from provenance

OIDC auth worked — no 401, no 404. This is the next gate along.

Trusted publishing turns on sigstore provenance automatically for public repos, and npm refuses an upload whose package.json does not name the repo the provenance attests to. Only the wrapper had a repository field; the four platform packages had none.

The floor

scripts/check-versions.sh now checks repository.url on every npm manifest. Everything else about v0.3.1 was green — version gate, tag, GitHub release, all 8 assets — and it still could not publish. That is exactly the shape of failure a pre-publish gate exists to catch, so it earns a check rather than just a patch.

Observed red before wiring it in:

npm/linear-cli-linux-x64/package.json: no .repository.url (npm rejects provenance without it)
FAIL: manifests disagree with tag 0.3.1

Version

0.3.2. v0.3.1 reached GitHub (tag + release + assets) but never reached npm, which is still on 0.2.11.

The v0.3.1 publish failed with:

  422 Unprocessable Entity - Error verifying sigstore provenance bundle:
  package.json: "repository.url" is "", expected to match
  "https://github.com/alleneubank/linear-cli" from provenance

OIDC auth itself worked — this is the next gate along. Trusted
publishing turns on provenance automatically for public repos, and npm
refuses an upload whose package.json does not name the repo the
provenance attests to. Only the wrapper package had a repository field;
the four platform packages had none.

check-versions.sh now checks repository.url on every npm manifest.
Everything else about v0.3.1 was green — tag, gate, GitHub release, all
8 assets — and it still could not publish, which is precisely the shape
of failure a pre-publish gate exists to catch. Observed red against a
deleted repository field before wiring it in.

Bumps to 0.3.2; v0.3.1 reached GitHub but not npm.
@alleneubank
alleneubank merged commit 350f3ad into main Aug 21, 2026
3 checks passed
@alleneubank
alleneubank deleted the fix/provenance-repository-field branch August 21, 2026 17:50
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