Skip to content

fix(release): publish gcode-bgcode + idempotent publish guard - #244

Merged
sobechestnut-dev merged 1 commit into
devfrom
fix/publish-order-bgcode
Jul 28, 2026
Merged

fix(release): publish gcode-bgcode + idempotent publish guard#244
sobechestnut-dev merged 1 commit into
devfrom
fix/publish-order-bgcode

Conversation

@sobechestnut-dev

Copy link
Copy Markdown

The v0.3.0 publish shipped 12 of 13 packagestools/release/publish.mjs had a hardcoded ORDER list that never got gcode-bgcode added when the package was created, so the release silently skipped it (and reported success for the 12 it knew about). gcode-bgcode@0.3.0 is not on npm.

Changes

  • publish.mjs ORDER — add gcode-bgcode (after gcode-containers, before gcode-parser, which depends on the bgcode adapter). Now 13.
  • publish.mjs idempotent guard — skip any name@version already on the registry (DD-008 §6 recovery model), so a rerun publishes only the missing remainder instead of failing on "cannot publish over existing version".
  • release-publish.yml — add workflow_dispatch so a partial line can be completed by re-running the idempotent publish against main (no need to move the immutable v0.3.0 tag); fix the stale "×9" step label.

Recovery

After this lands on main, dispatching release-publish publishes only gcode-bgcode@0.3.0 (the other 12 are skipped), completing the v0.3.0 line. npm allows it — the name is unpublished.

Tooling-only; changeset-exempt.

The v0.3.0 publish shipped 12/13 packages: tools/release/publish.mjs had a
hardcoded ORDER list that never got gcode-bgcode added when the package was
created, so the release skipped it (and reported success for the 12 it knew).

- Add gcode-bgcode to ORDER, after gcode-containers / before gcode-parser
  (parser's batteries worker depends on the bgcode adapter).
- Idempotent recovery guard (DD-008 §6): skip any name@version already on the
  registry, so a rerun publishes only the not-yet-published remainder instead
  of dying on "cannot publish over existing version".
- release-publish.yml: add workflow_dispatch so a partial line can be completed
  by re-running the idempotent publish against main (no tag surgery); fix the
  stale "×9" step label.

Recovery for the v0.3.0 line: dispatch publishes only gcode-bgcode@0.3.0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sobechestnut-dev
sobechestnut-dev merged commit 6058ddc into dev Jul 28, 2026
4 checks passed
@sobechestnut-dev
sobechestnut-dev deleted the fix/publish-order-bgcode branch July 28, 2026 09:40
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