Skip to content

Fix npm publish workflow provenance for tag releases - #21

Merged
mjradwin merged 2 commits into
mainfrom
copilot/fix-publishing-job-failure
Jul 1, 2026
Merged

Fix npm publish workflow provenance for tag releases#21
mjradwin merged 2 commits into
mainfrom
copilot/fix-publishing-job-failure

Conversation

Copilot AI commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

The publish GitHub Actions job was failing during npm publish with a Sigstore provenance validation error: Missing SourceRepositoryRef in signing certificate. The failure was caused by publishing from the release event context rather than from the version tag ref npm trusted publishing expects.

  • Root cause

    • release.published did not provide a usable tag ref in the provenance certificate.
    • npm rejected the generated bundle with E422 because SourceRepositoryRef was missing.
  • Workflow change

    • Switched the publish trigger from release.published to version tag pushes (v*).
    • Kept the existing publish job structure intact; only the event source changed.
  • Documentation alignment

    • Updated the workflow header comment to reflect tag-driven publishing behavior.
on:
  push:
    tags: ['v*']
  workflow_dispatch:

Copilot AI changed the title [WIP] Fix failing GitHub Actions job publish Fix npm publish workflow provenance for tag releases Jul 1, 2026
Copilot AI requested a review from mjradwin July 1, 2026 16:55
@mjradwin
mjradwin marked this pull request as ready for review July 1, 2026 16:56
@mjradwin
mjradwin merged commit 4a19122 into main Jul 1, 2026
4 checks passed
@mjradwin
mjradwin deleted the copilot/fix-publishing-job-failure branch July 1, 2026 16:56
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.

2 participants