Skip to content

chore: switch to npm trusted publisher with OIDC provenance#225

Merged
robertsLando merged 1 commit intomainfrom
chore/trusted-publisher
Apr 1, 2026
Merged

chore: switch to npm trusted publisher with OIDC provenance#225
robertsLando merged 1 commit intomainfrom
chore/trusted-publisher

Conversation

@robertsLando
Copy link
Copy Markdown
Member

Summary

  • Add release-it.yml workflow with id-token: write for npm OIDC authentication (trusted publishers)
  • No NPM_TOKEN needed — auth is handled via OIDC
  • Add skipChecks: true to .release-it.json (OIDC tokens unavailable at preflight)
  • Add provenance: true to publishConfig in package.json
  • Use GH_TOKEN PAT for checkout/push to bypass branch protection

Prerequisites

  • Configure trusted publisher on npmjs.com for @yao-pkg/pkg → link to yao-pkg/pkg repo + release-it.yml workflow
  • Create a GH_TOKEN repository secret with a PAT that has push access

Test plan

  • Verify trusted publisher is configured on npmjs.com
  • Verify GH_TOKEN secret is set in repo settings
  • Trigger the workflow manually with patch and confirm it publishes with provenance

🤖 Generated with Claude Code

- Add release-it workflow with id-token:write for OIDC auth
- Remove NPM_TOKEN dependency in favor of trusted publishers
- Add skipChecks to release-it config (OIDC tokens unavailable at preflight)
- Add provenance to publishConfig in package.json
- Use GH_TOKEN PAT for push access through branch protection

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@robertsLando robertsLando merged commit b9fd3fd into main Apr 1, 2026
45 checks passed
@robertsLando robertsLando deleted the chore/trusted-publisher branch April 1, 2026 07:15
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