Skip to content

πŸ‘·β€β™€οΈ Ask the registry whether a version is published - #20

Merged
alecgibson merged 1 commit into
masterfrom
fix-release-script
Sep 15, 2026
Merged

alecgibson merged 1 commit into
masterfrom
fix-release-script

Conversation

@alecgibson

@alecgibson alecgibson commented Sep 15, 2026 •

Copy link
Copy Markdown
Collaborator

release.sh asked git whether a version had been released, then published to npm β€” two owners of one fact. A publish that failed after the tag landed left the version tagged but unpublished, and the guard skipped it on every later run; that is how 4.1.0-reedsy.5.0.0 came to need a tag deleted by hand.

The registry answers that now, and publishing comes first, so a failed publish leaves nothing behind and simply retries. Tagging afterwards is best-effort: nothing but us reads these tags, so a missing one is worth a warning rather than a red build.

πŸ€– Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

@alecgibson alecgibson changed the title πŸ‘·β€β™€οΈ Publish to the latest dist-tag, and fail the release loudly πŸ‘·β€β™€οΈ Ask the registry whether a version is published Sep 15, 2026
`release.sh` asked git whether a version had been released, then
published to npm β€” two owners of one fact. A publish that failed after
the tag landed left the version tagged but unpublished, and the guard
skipped it on every later run; that is how `4.1.0-reedsy.5.0.0` came to
need a tag deleted by hand.

The registry answers that now, and publishing comes first, so a failed
publish leaves nothing behind and simply retries. Tagging afterwards is
best-effort: nothing but us reads these tags, so a missing one is worth
a warning rather than a red build.

πŸ€– Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@alecgibson
alecgibson marked this pull request as ready for review September 15, 2026 09:38
Copilot AI lite review requested due to automatic review settings September 15, 2026 09:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟒 Approval recommended

No unresolved review issues were identified.

Pull request overview

Updates release detection to use npm as the source of truth, publishes before tagging, and makes tagging best-effort.

Changes:

  • Checks whether the exact version is published.
  • Publishes before creating and pushing the Git tag.
  • Adds shell syntax validation to CI.
File summaries
File Description
release.sh Implements registry-based release detection and publish-first ordering.
.github/workflows/ci.yml Validates the release script syntax in CI.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

πŸ’‘ Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@alecgibson
alecgibson merged commit 4d947ea into master Sep 15, 2026
2 checks passed
@alecgibson
alecgibson deleted the fix-release-script branch September 15, 2026 09:41
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