Skip to content

Switch to OIDC trusted publishing#11

Merged
crocker merged 1 commit intomainfrom
ci/oidc-trusted-publishing
Mar 25, 2026
Merged

Switch to OIDC trusted publishing#11
crocker merged 1 commit intomainfrom
ci/oidc-trusted-publishing

Conversation

@crocker
Copy link
Copy Markdown
Contributor

@crocker crocker commented Mar 25, 2026

Summary

  • Replace NPM_TOKEN secret with OIDC trusted publishing (no stored secrets)
  • Add production GitHub environment with required reviewer (@crocker) and main branch restriction
  • Upgrade npm CLI to latest (Node 20 ships npm 10.x, OIDC requires 11.5.1+)

Setup required

Configure the trusted publisher on npmjs.com:

  1. Go to https://www.npmjs.com/package/@datashift/sdk/access
  2. Add GitHub Actions as trusted publisher
  3. Org: datashift-io, Repo: typescript-sdk, Workflow: release.yml, Environment: production

Test plan

  • Configure trusted publisher on npmjs.com
  • Trigger a release after merging and verify publish succeeds

- Add production environment with required reviewer and branch policy
- Upgrade npm to latest (Node 20 ships npm 10.x, OIDC needs 11.5.1+)
- Remove NPM_TOKEN secret in favor of OIDC authentication
@crocker crocker merged commit 533d6c3 into main Mar 25, 2026
2 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