ci: add npm trusted publishing workflow - #16
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
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.ymlto verify signed annotated tags, main ancestry, and publish with--provenancevia 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; addrepositorymetadata topackage.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 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation