ci: remove redundant npmpublish.yml (semantic-release is the publish path)#39
Conversation
…path) npmpublish.yml published to npm on `release: created` using the now-dead NPM_TOKEN. It is redundant: the semantic-release job in test-and-release.yml already publishes to npm (via OIDC, with provenance) AND creates the GitHub Release. semantic-release makes that release with GITHUB_TOKEN, which by design does not trigger other workflows, so npmpublish.yml never fires in the automated flow — and on a *manual* release it would double-publish or fail on the expired token. Delete it so semantic-release is the single, OIDC-authenticated publish path. Co-Authored-By: Claude Opus 4.8 (1M context) <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? |
Review Summary by QodoRemove redundant npmpublish.yml workflow file
WalkthroughsDescription• Remove redundant npm publish workflow file • Consolidate publishing to semantic-release only • Eliminate dead NPM_TOKEN secret dependency • Ensure single OIDC-authenticated publish path Diagramflowchart LR
A["npmpublish.yml<br/>release:created trigger"] -->|"DELETED"| B["semantic-release<br/>single publish path"]
C["NPM_TOKEN<br/>dead secret"] -->|"REMOVED"| D["OIDC auth<br/>only method"]
File Changes1. .github/workflows/npmpublish.yml
|
Code Review by Qodo
1. Manual release publish removed
|
|
@qodo This is the intended behavior change, not a regression. Publishing is owned by semantic-release on the push-to-main flow: it derives the version from conventional commits, publishes to npm via OIDC, and creates the GitHub Release itself. Manual GitHub Releases aren't part of this project's process — and because semantic-release creates releases with GITHUB_TOKEN (which doesn't trigger other workflows), |
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? |
Follow-up to #38 (Qodo finding).
npmpublish.ymlpublished to npm onrelease: createdusing the now-deadNPM_TOKEN.It's redundant: the
semantic-releasejob intest-and-release.ymlalready publishes to npm (via OIDC, with provenance — confirmed by the1.2.2publish) and creates the GitHub Release. semantic-release makes that release withGITHUB_TOKEN, which by design doesn't trigger other workflows, sonpmpublish.ymlnever fires in the automated flow. On a manual release it would either double-publish or fail on the expired token.Deleting it leaves semantic-release as the single, OIDC-authenticated publish path — no stored token anywhere.
🤖 Generated with Claude Code