Skip to content

ci: add manual publish-to-npm workflow#121

Merged
PAMulligan merged 1 commit into
mainfrom
chore/manual-npm-publish-workflow
Jun 14, 2026
Merged

ci: add manual publish-to-npm workflow#121
PAMulligan merged 1 commit into
mainfrom
chore/manual-npm-publish-workflow

Conversation

@PAMulligan

Copy link
Copy Markdown
Contributor

Why

claudius-chat-widget still isn't on npm. The release-please workflow only runs its npm-publish step the one time it first cuts a release (release_created), so:

  • it already ran (and failed) for v1.6.0 with the old token, and
  • re-running that job is a no-op — the GitHub release for 1.6.0 already exists, so the publish step is skipped.

There's no built-in way to replay that publish. This adds a small workflow_dispatch workflow so we can publish on demand using the NPM_TOKEN secret (with provenance) — to bootstrap the first release now, and to recover from any future failed release publish.

After merge

Trigger it from the Actions tab (or gh workflow run "Publish to npm"). It builds the widget and runs npm publish --provenance --access public.

Note: for the first publish the token in NPM_TOKEN must be able to create a new package — a classic Automation token, or a granular token with All packages + read/write. A granular token scoped to a specific (not-yet-existing) package can't create it.

🤖 Generated with Claude Code

release-please only runs the npm publish step when it first cuts a release;
re-running that job is a no-op once the GitHub release exists. This adds an
on-demand "Publish to npm" workflow to bootstrap the first publish and to
recover from a failed release publish, using the NPM_TOKEN secret with
provenance.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@PAMulligan
PAMulligan merged commit 3f857d1 into main Jun 14, 2026
4 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.

1 participant