Skip to content

ci: add npm trusted publishing workflow - #16

Merged
BunsDev merged 1 commit into
mainfrom
chore/npm-trusted-publishing
Aug 1, 2026
Merged

ci: add npm trusted publishing workflow#16
BunsDev merged 1 commit into
mainfrom
chore/npm-trusted-publishing

Conversation

@BunsDev

@BunsDev BunsDev commented Aug 1, 2026

Copy link
Copy Markdown
Member

Summary

  • add a signed-tag-gated npm release workflow using GitHub OIDC and provenance
  • verify release tags, package versions, main ancestry, artifact quality, and repository identity
  • document Trusted Publisher setup, release verification, and recovery procedures

Validation

  • pnpm check
  • pnpm test:package
  • pnpm audit:prod
  • independent code review: ready to merge

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 1, 2026 09:25
@vercel

vercel Bot commented Aug 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
coven-memory Ready Ready Preview Aug 1, 2026 9:25am

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a signed-tag-gated npm release workflow that publishes via GitHub OIDC Trusted Publishing with provenance, and adds tests/docs to enforce and explain the release process in the coven-memory repo.

Changes:

  • Add .github/workflows/release-npm.yml to verify signed annotated tags, main ancestry, and publish with --provenance via OIDC (no npm token).
  • Add policy tests to enforce the release workflow’s security invariants and ensure release documentation stays intact.
  • Document Trusted Publisher setup and recovery in docs/releasing.md, and link it from the README; add repository metadata to package.json.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
scripts/guard-policy.test.mjs Adds tests enforcing release workflow requirements (signed tags, OIDC/provenance, pinned npm, documentation invariants).
README.md Links to the new release documentation and states the Trusted Publishing approach.
package.json Adds repository metadata required/validated by the guard policy tests and useful for npm provenance/metadata.
docs/releasing.md Documents Trusted Publisher setup, release steps, verification, and recovery procedures.
.github/workflows/release-npm.yml New tag-triggered workflow to verify signed tags and publish to npm via OIDC with provenance.

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

Comment on lines +81 to +82
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6.0.0

@BunsDev
BunsDev merged commit 59c6508 into main Aug 1, 2026
10 checks passed
@BunsDev
BunsDev deleted the chore/npm-trusted-publishing branch August 1, 2026 09:41
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