Skip to content

Make the publish dry run walk the real path - #54

Merged
its-janghoon merged 1 commit into
developfrom
feature/publish-dry-run-walks-real-path
Sep 22, 2026
Merged

its-janghoon merged 1 commit into
developfrom
feature/publish-dry-run-walks-real-path

Conversation

@its-janghoon

Copy link
Copy Markdown
Contributor

Caught by reading the first dry run's output instead of its green checkmark.

It proved the build and the pack and nothing about the version — the part most likely to be wrong. The workflow invoked bun pm pack directly, skipping publish.ts where the version injection lives, so it packed the committed 0.0.0:

redrob-code-sdk-0.0.0.tgz

A rehearsal that bypasses the code it is rehearsing is not one. Both modes now run the same script, stopping only at the registry call.

Verified locally

REDROB_VERSION=0.4.1 REDROB_PUBLISH_DRY_RUN=true bun run ./script/publish.ts
→ redrob-code-sdk-0.4.1.tgz
→ package.json restored to 0.0.0
→ tarball's dist/v2/gen/types.gen.d.ts contains "blocked"

That last line is the point of the exercise: blocked is the session status the desktop app currently has to declare structurally, because no published package contains it.

The first dry run proved the build and the pack and nothing about the version,
which is the part most likely to be wrong. It invoked `bun pm pack` directly and
so skipped `publish.ts` entirely -- where the version injection lives -- and packed
the committed `0.0.0`. The tarball said `redrob-code-sdk-0.0.0.tgz` and the run was
green.

A rehearsal that bypasses the code it is rehearsing is not one. Both modes now run
the same script, which stops only at the registry call.

Verified locally: `REDROB_VERSION=0.4.1` with the dry-run flag packs
`redrob-code-sdk-0.4.1.tgz`, restores `package.json` to `0.0.0` afterwards, and the
tarball's `dist/v2/gen/types.gen.d.ts` carries the `blocked` session status -- which
is the variant the desktop app currently has to declare structurally because no
published package contains it.
@its-janghoon
its-janghoon merged commit 5ccfa7a into develop Sep 22, 2026
15 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