Skip to content

ci(publish): verify npm token before bumping and allow publishing without a bump - #7

Merged
adamhenson merged 1 commit into
mainfrom
ci/publish-recovery
Oct 11, 2026
Merged

adamhenson merged 1 commit into
mainfrom
ci/publish-recovery

Conversation

@adamhenson

Copy link
Copy Markdown
Contributor

Summary

The v1.2.0 release pushed its version bump commit to main but failed at pnpm publish with E404. The NPM_TOKEN secret was a 90-day granular token set on June 16, so it has expired. Re-running the job can't recover: it would bump from the tag's 1.1.1 again and the push to main would be rejected. A new release would skip ahead to 1.3.0.

  • Adds a workflow_dispatch trigger. When run manually, the bump and commit steps are skipped and the version already on main is built and published.
  • Adds an npm whoami step before the bump, so a bad token fails before anything touches main.
  • Documents the recovery path in docs/publishing.md.

To publish 1.2.0

  1. Rotate NPM_TOKEN (see docs/publishing.md).
  2. Run gh workflow run publish.yml --ref main.

@adamhenson
adamhenson merged commit e2fd7f4 into main Oct 11, 2026
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