Skip to content

ci: publish to npm via Trusted Publisher (OIDC) instead of token#32

Merged
wesleyboar merged 3 commits into
mainfrom
ci/npm-trusted-publisher
Jul 13, 2026
Merged

ci: publish to npm via Trusted Publisher (OIDC) instead of token#32
wesleyboar merged 3 commits into
mainfrom
ci/npm-trusted-publisher

Conversation

@wesleyboar

@wesleyboar wesleyboar commented Jul 13, 2026

Copy link
Copy Markdown
Member

Overview

Switch npm publishing from a token (NPM_TOKEN) to Trusted Publisher (OIDC), so CI authenticates to npm without a stored secret. This fixes the publish failure, which was a token auth error.

Related

Changes

  • changed npm auth to Trusted Publisher (OIDC)
  • removed the NPM_TOKEN secret dependency
  • merged the build and publish jobs into one
  • updated workflow actions to @v6 and Node to 24

Testing

  1. On npmjs.com, register the Trusted Publisher for @tacc/core-components: owner TACC, repo Core-Components, workflow npm-publish.yml.
  2. Publish via a release or workflow_dispatch, and confirm it succeeds without a token.

Notes

Switch npm-publish workflow to OIDC-based Trusted Publishing, removing
the NPM_TOKEN secret dependency. Also collapse the separate build and
publish jobs into a single job (one npm install, then test then publish),
bump actions to v6, and update Node to 24.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

wesleyboar and others added 2 commits July 13, 2026 16:11
Trusted Publishing signs provenance, which requires package.json
"repository.url" to match the GitHub repo.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@wesleyboar wesleyboar merged commit ec33666 into main Jul 13, 2026
1 check passed
@wesleyboar wesleyboar deleted the ci/npm-trusted-publisher branch July 13, 2026 21:44
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