ci: route automatic publish to the npm-trusted workflow#21
Merged
Conversation
The Release workflow dispatched publish.yml, which is not a configured npm OIDC trusted publisher and always failed with ENEEDAUTH. Point the on-release dispatch at publish-as-is.yml (the workflow npm authorizes, used to ship 0.0.4) and drop the prerelease "next" dispatch, which fired on every release PR open and could not authenticate. Co-authored-by: Cursor <cursoragent@cursor.com>
publish.yml is no longer dispatched by release.yml and is not an authorized npm OIDC trusted publisher (always failed with ENEEDAUTH). Remove the dead workflow; publish-as-is.yml is the sole publish path. Co-authored-by: Cursor <cursoragent@cursor.com>
YoniMelki
approved these changes
Jun 29, 2026
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.
Problem
The automatic publish has been failing on every release.
release.ymldispatchedpublish.yml("Publish Package"), butpublish.ymlis not a configured npm OIDC trusted publisher, sonpm publishdied withENEEDAUTH. The only workflow npm authorizes ispublish-as-is.yml("Publish public Package version") — the one that successfully shipped0.0.4manually.A second symptom: the
prs_created→nextdispatch fired on every release-please PR open and also failed (sameENEEDAUTH), producing recurring red runs and no usable prerelease.Fix (GitHub-side only — no npmjs changes)
publish-package-as-isso it triggerspublish-as-is.yml, which npm already trusts.publish-as-is.ymlpublishespackage.json's version as-is atlatest— exactly what a merged release PR needs.nextprerelease dispatch and gate the job onreleases_created == 'true'only.publish.yml— it's no longer dispatched and was never an authorized publisher.publish-as-is.ymlis now the sole publish path.After this, merging a release-please PR auto-publishes to npm with no manual step.
Notes
publish-as-is.yml— npm's trusted-publisher match is keyed to the workflow filename.Test plan
publish-package-as-isdispatch runs and publishes0.1.0to npmlatest.