Skip to content

chore(ci): switch publish workflow to npm OIDC trusted publishing#61

Merged
tangletools merged 1 commit into
developfrom
chore/publish-oidc
May 31, 2026
Merged

chore(ci): switch publish workflow to npm OIDC trusted publishing#61
tangletools merged 1 commit into
developfrom
chore/publish-oidc

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

Drops the rotating NPM_TOKEN secret in favor of npm's OIDC trusted-publisher flow.

The id-token: write permission was already declared on this job; this PR completes the swap:

  • Removes NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} (no longer needed)
  • Adds --provenance so each published version carries a signed attestation back to this workflow + tag

Prerequisite

Trusted publisher configured at npmjs.com — Settings > Trusted Publishers > GitHub Actions:

  • Organization: tangle-network
  • Repository: agent-integrations
  • Workflow filename: publish.yml

(Configured by Drew before this PR.)

What this unblocks

Fixes the E404-on-PUT failure mode that has silently blocked v0.29.0, v0.30.0, and v0.31.0 publishes — the broken NPM_TOKEN no longer matters when OIDC handles auth.

After merge: gh workflow run publish.yml --ref v0.31.0 should successfully publish 0.31.0 (with the 541 wave-2-6 adapters bundled). Tag retriggers were no-ops while auth was broken; they'll fire cleanly now.

Drops the rotating NPM_TOKEN secret in favor of npm's OIDC trusted-publisher flow. The id-token: write permission was already declared on this job; this PR completes the swap by removing NODE_AUTH_TOKEN (no longer needed) and adding --provenance so each published version carries a signed attestation back to this workflow + tag. Trusted publisher must be configured at npmjs.com side first (Settings > Trusted Publishers > GitHub Actions, org=tangle-network, repo=agent-integrations, workflow=publish.yml) — completed before this PR landed. Fixes the E404-on-PUT failure mode that has blocked v0.29.0, v0.30.0, and v0.31.0 publishes.

@tangletools tangletools left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OIDC switch LGTM as tangletools. Removes the rotating secret, adds signed provenance, prereq (trusted publisher at npmjs.com) confirmed by author. Unblocks the 3 stuck releases.

@tangletools tangletools merged commit 258972f into develop May 31, 2026
@tangletools tangletools deleted the chore/publish-oidc branch May 31, 2026 21:11
tangletools added a commit that referenced this pull request Jun 1, 2026
Drop NPM_TOKEN env path, always pass --provenance, simplify error message to point at the trusted-publisher config. Mirrors the cleanup in tangle-network/agent-dev-container#1550 that flips publish-sandbox-sdk/-cli/hub-sdk to OIDC-only.

Prerequisite: /package/@tangle-network/agent-integrations/access trusted publisher entry must be at PACKAGE level with workflow=publish.yml env=blank. The trusted-publisher entry from session-earlier #61 may still be there (it was reverted to NPM_TOKEN in #62 but the npm-side config is decoupled). If publish fails after merge, verify the entry exists at the package level.

Co-authored-by: Drew Stone <hello@tangle.tools>
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