Skip to content

feat: allow manual trigger of npm publish workflow - #31

Merged
wesleyboar merged 2 commits into
mainfrom
feat/npm-publish-manual-trigger
Jul 13, 2026
Merged

feat: allow manual trigger of npm publish workflow#31
wesleyboar merged 2 commits into
mainfrom
feat/npm-publish-manual-trigger

Conversation

@wesleyboar

@wesleyboar wesleyboar commented Jul 13, 2026

Copy link
Copy Markdown
Member

Overview

Adds workflow_dispatch to 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

  • updated .github/workflows/npm-publish.yml — added workflow_dispatch trigger

Testing

  1. Merge this PR.
  2. Go to Actions → Node.js Package.
  3. Click Run workflow and confirm it appears as an option.

UI

N/A

@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
wesleyboar merged commit bca76d3 into main Jul 13, 2026
@wesleyboar
wesleyboar deleted the feat/npm-publish-manual-trigger branch July 13, 2026 20:23
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>
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