Skip to content

Fix npm publish not running after release; add manual publish - #44

Merged
jburnhams merged 2 commits into
mainfrom
claude/project-thread-bgd0e5
Nov 9, 2026
Merged

jburnhams merged 2 commits into
mainfrom
claude/project-thread-bgd0e5

Conversation

@jburnhams

@jburnhams jburnhams commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

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.yml never ran, so 3.0.0 isn't on npm. There are two causes, both in how softprops/action-gh-release@v2 is used:

  1. Wrong token (main cause; found by the jpeg-encoder thread, jpeg-encoder Fix quick start example parity and render popups in exports #10). The action reads its token input, which defaults to github.token, and ignores a GITHUB_TOKEN env var. The job log shows the input set to the default, so the release was created as github-actions[bot]. Events created with GITHUB_TOKEN don't trigger other workflows.
  2. Draft first. The action creates a draft and then finalizes it ("Finalizing release..." in the log). release: created doesn't fire for drafts.

What changes

  • release.yml: passes token: ${{ secrets.RELEASE_TOKEN }} as an input instead of setting the env var.
  • npm-publish.yml: triggers on release: published, and adds workflow_dispatch with a tag input to publish an existing tag by hand. Checkout uses inputs.tag || github.ref.

After merge

  • The next release run bumps to v3.0.1, from these commits, and publishes it.
  • To also put 3.0.0 on npm, go to Actions › NPM Publish Package › Run workflow and enter tag v3.0.0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QhgcNyPGK62bg5XGGZhpkx

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
@jburnhams jburnhams self-assigned this Nov 9, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T22:28:53.070584Z f0bbbfd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

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
@jburnhams jburnhams changed the title Publish to npm on release published, add manual publish Fix npm publish not running after release; add manual publish Nov 9, 2026
@jburnhams
jburnhams merged commit 0ef3687 into main Nov 9, 2026
3 checks passed
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.

2 participants