Skip to content

ci(release): publish to npm via trusted publishing on release#57

Closed
Sumit1993 wants to merge 1 commit into
mainfrom
ci/npm-trusted-publishing
Closed

ci(release): publish to npm via trusted publishing on release#57
Sumit1993 wants to merge 1 commit into
mainfrom
ci/npm-trusted-publishing

Conversation

@Sumit1993

Copy link
Copy Markdown
Owner

What

Extends release-please.yml with a publish job, adapted from prismalens's release.yml: when release-please cuts a release (the release PR merges), the same commit is published to npm via trusted publishing (OIDC) — no npm token secret, provenance attestations generated automatically.

Kept release-please (not changesets) since this repo's whole release line (PR-title gate, config, ADRs) is built on it; the prismalens part being adopted is the OIDC publish mechanics.

Why auto-publish is now safe

The old header said publish stays manual for dogfooding. Dogfooding now happens on the release PR itself — CI builds, tests, and smoke-installs the packed tarball on it — so merging the release PR is the ship decision.

Before merging

Register the trusted publisher on npmjs.com: mage-memory → Settings → Publishing access → Trusted publisher → GitHub Actions, repo Sumit1993/mage-memory, workflow release-please.yml, no environment. Without this the publish job fails auth (nothing else breaks).

🤖 Generated with Claude Code

https://claude.ai/code/session_01ATqpNDpPMsBY9UrSNuvEWw

…e cuts a release

Adapted from prismalens's release.yml: OIDC trusted publishing (no npm
token secret, automatic provenance), kept on release-please instead of
changesets. Dogfooding moves to the release PR — CI already builds,
tests, and smoke-installs the packed tarball there; merging it is the
ship decision and now publishes automatically.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ATqpNDpPMsBY9UrSNuvEWw
@Sumit1993 Sumit1993 closed this Jul 12, 2026
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