feat: allow manual trigger of npm publish workflow - #31
Merged
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
wesleyboar
added a commit
that referenced
this pull request
Jul 13, 2026
## 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 - Mirrors the Trusted Publisher setup used for `@tacc/html-filter-sort` - Follows #31 and #29 ## 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 > [!TIP] > [Successfully tested.](https://github.com/TACC/Core-Components/actions/runs/29286986062/job/86941791315) 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. --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Adds
workflow_dispatchto the npm publish workflow so it can be triggered manually from the GitHub Actions UI, without needing to create a release.Important
We would only manually run if it fails and we have a fix after GitHub release, because GitHub release automatically triggers this job.
Related
Changes
.github/workflows/npm-publish.yml— addedworkflow_dispatchtriggerTesting
UI
N/A