refactor: publish to npm via GitHub Actions - #678
Draft
wesleyboar wants to merge 4 commits into
Draft
Conversation
Move npm publish out of the local release script and into a GitHub Actions workflow triggered on release creation, authenticating via npm Trusted Publishing (OIDC) instead of a long-lived token. - release.sh no longer checks npm login or runs npm publish locally - requires one-time npm Trusted Publisher registration for this repo/workflow Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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? |
Match structure, action versions, and node version used by Core-Components' npm-publish.yml as closely as possible. - add publishConfig.access:public to package.json so npm publish needs no --access flag, same as Core-Components - drop the redundant npm@latest upgrade step (unneeded per Core-Components' working setup) - keep the rc/latest dist-tag step and skip npm test/build, both currently-necessary differences from Core-Components Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
wesleyboar
marked this pull request as draft
July 31, 2026 22:29
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
Moves
npm publishout ofbin/release.shin to new GitHub Actions workflow that runs when a GitHub release is created (authenticating via npm Trusted Publishing (OIDC) instead of a long-lived npm token).Caution
Untested!
Related
/.../npm-publish.ymlChanges
npm publishreleasescript (nonpmactions)PUBLISHING.mdTesting
bash -n bin/release.sh— syntax check passes...-rc….Notes
Tip
Prerequisite (manual, on npmjs.com) of registering
TACC/Core-Stylesandnpm-publish.ymlas a Trusted Publisher for@tacc/core-stylesis completed.