Skip to content

fix: wire up publish workflow using npm trusted publishers#5

Merged
sharanmoore merged 2 commits into
mainfrom
docs/publishing-readme
Jun 29, 2026
Merged

fix: wire up publish workflow using npm trusted publishers#5
sharanmoore merged 2 commits into
mainfrom
docs/publishing-readme

Conversation

@sharanmoore

@sharanmoore sharanmoore commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fixes the publish workflow, which has never succeeded, by switching from a long-lived NPM_TOKEN secret to npm Trusted Publishers (OIDC) — no secrets required.
  • Adds a Releasing section to the README documenting the one-time setup and publish process.

Action required before merging

Configure the trusted publisher on npmjs.com:

  1. Go to the @gradientlabs/client package → SettingsTrusted PublishersAdd trusted publisher.
  2. Select GitHub Actions and fill in:
    • Owner: gradientlabs-ai
    • Repository: gradientlabs-nodejs
    • Workflow: publish.yml
image

Once that's done, pushing a version tag to main will publish to npm automatically.

@sharanmoore sharanmoore requested review from a team as code owners June 29, 2026 15:10
@sharanmoore sharanmoore changed the title docs: add Releasing section to README fix: wire up publish workflow using npm trusted publishers Jun 29, 2026
@sharanmoore sharanmoore requested review from gmtuca and nlathia June 29, 2026 16:13
@sharanmoore sharanmoore merged commit b4aeaa4 into main Jun 29, 2026
2 checks passed
@sharanmoore sharanmoore deleted the docs/publishing-readme branch June 29, 2026 16:26
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.

2 participants