Repository navigation
Fix npm publish not running after release; add manual publish - #44
Merged
Merged
Conversation
softprops/action-gh-release now creates the release as a draft and then finalizes it, and GitHub doesn't fire release "created" for drafts, so npm-publish.yml never ran for v3.0.0. Trigger on "published" instead, and add a workflow_dispatch with a tag input to publish an existing tag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhgcNyPGK62bg5XGGZhpkx
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
softprops/action-gh-release reads its `token` input (default github.token) and ignores a GITHUB_TOKEN env var, so v3.0.0 was created by github-actions[bot]. Events from GITHUB_TOKEN don't start other workflows, which is the main reason npm-publish.yml didn't run. Found by the jpeg-encoder thread (jpeg-encoder #10). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhgcNyPGK62bg5XGGZhpkx
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.
Requested by Jonathan · project thread
Why
The release flow from #42 worked: it opened and merged #43, then tagged and released v3.0.0. But
npm-publish.ymlnever ran, so 3.0.0 isn't on npm. There are two causes, both in howsoftprops/action-gh-release@v2is used:tokeninput, which defaults togithub.token, and ignores aGITHUB_TOKENenv var. The job log shows the input set to the default, so the release was created as github-actions[bot]. Events created withGITHUB_TOKENdon't trigger other workflows.release: createddoesn't fire for drafts.What changes
release.yml: passestoken: ${{ secrets.RELEASE_TOKEN }}as an input instead of setting the env var.npm-publish.yml: triggers onrelease: published, and addsworkflow_dispatchwith ataginput to publish an existing tag by hand. Checkout usesinputs.tag || github.ref.After merge
v3.0.0.🤖 Generated with Claude Code
https://claude.ai/code/session_01QhgcNyPGK62bg5XGGZhpkx