Skip to content

Stop the release from masking its own error - #4

Merged
Guiw5 merged 1 commit into
mainfrom
fix/release-noise
Sep 8, 2026
Merged

Guiw5 merged 1 commit into
mainfrom
fix/release-noise

Conversation

@Guiw5

@Guiw5 Guiw5 commented Sep 8, 2026

Copy link
Copy Markdown
Owner

The release job on main fails with EINVALIDNPMTOKEN (npm answers 401 Unauthorized to whoami), but the log ends with a different error: Issues has been disabled in this repository. That second failure comes from @semantic-release/github trying to open an issue to report the first one, and it buries the actual cause.

  • failComment: false / failTitle: false so a failed release reports the real error and nothing else. successComment: false too, for the same reason on the happy path.
  • Drops the issues: write permission, which cannot be used with issues disabled.

Does not fix the release itself: the NPM_TOKEN secret is invalid or expired and has to be regenerated on npmjs.com. Unrelated to this change, the log also shows OIDC token exchange ... 404 package not found, which is just semantic-release trying trusted publishing before falling back to the token; it is harmless and goes away if trusted publishing is ever configured for the package.

Issues are disabled on this repo, so @semantic-release/github failed trying to file the failure report, hiding the real npm auth error underneath. Drops the now unused issues permission.
@Guiw5
Guiw5 merged commit 516ccfb into main Sep 8, 2026
2 checks passed
@Guiw5
Guiw5 deleted the fix/release-noise branch September 8, 2026 21:45
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