Skip to content

ci: publish through npm trusted publishing only - #201

Merged
gcharang merged 2 commits into
devfrom
chore/drop-npm-token-fallback
Nov 30, 2026
Merged

gcharang merged 2 commits into
devfrom
chore/drop-npm-token-fallback

Conversation

@gcharang

Copy link
Copy Markdown
Contributor

Both packages now publish through npm trusted publishing: @proofoftech/flowsafe 0.36.0-0.38.0 and @proofoftech/breakwater 0.20.0 carry _npmUser.trustedPublisher and SLSA provenance. The release job therefore stops passing NODE_AUTH_TOKEN, and the repository secret it read has been deleted. With actions/setup-node's registry-url and npm 11.21.0, the job's OIDC exchange is its only credential, which is npm's documented setup for trusted publishing. A failed exchange now fails that package's publish (E401, E404 or ENEEDAUTH) instead of publishing silently with a long-lived token.

  • .github/workflows/release.yml: the NODE_AUTH_TOKEN env line and its comment removed; the header says no token is configured.
  • docs/maintainer-guide.md: release-flow step 7 (no secret holds an npm token), step 10 (every version shows its trusted publisher), the credential paragraph, and the external-controls list.
  • CONTRIBUTING.md: the release paragraph.

No package changes, so no changeset. The next release from main is the live check: npm view @proofoftech/<package>@<version> _npmUser.trustedPublisher --json must print the publisher.

🤖 Generated with Claude Code

Both packages publish through the OIDC exchange, so the release job no
longer passes an npm token and the docs no longer describe a token
fallback; a failed exchange now fails that package's publish.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
anchorage-showcase-single-tenant f113a4f Nov 30 2026, 01:38 AM

Risk-lane COULDs: the publish-invocation check's comment still described a
silent fallback-token publish, and the release header now names setup-node's
placeholder token.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@gcharang
gcharang merged commit 7dd4bbe into dev Nov 30, 2026
3 of 4 checks passed
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