Skip to content

fix(release): create the GitHub release before upload - #5

Merged
smakosh merged 1 commit into
mainfrom
fix/release-draft
Oct 15, 2026
Merged

smakosh merged 1 commit into
mainfrom
fix/release-draft

Conversation

@smakosh

@smakosh smakosh commented Oct 15, 2026

Copy link
Copy Markdown
Member

Problem

The publish run after #4 merged (run 38647018204) failed in build-cli:

gh release upload v2.0.29 *.zip *.tar.gz --clobber
release not found

packages/cli/script/build.ts uploads the archives to a GitHub release, but nothing creates that release any more. Before the v2 sync, script/version.ts created a draft release and script/publish.ts published it at the end. Upstream v2 does not upload to GitHub releases, so the sync took its versions of both scripts and dropped those two steps. Because build-cli failed, publish was skipped: npm still serves 1.18.11 and v2.0.29 was never released.

Fix

  • script/version.ts: when the run is a release, create the draft release v<version> on the commit being built. A re-run reuses the draft if it already exists. Notes come from --generate-notes.
  • script/publish.ts: after npm, the tag and the version sync, publish the draft (gh release edit --draft=false), as the fork did before v2.

Verification

  • oxlint and prettier pass on both files, and both scripts build with bun build.
  • gh release view v2.0.29 returns "release not found" today, so the next run takes the create path.
  • Not run end to end: the only way to do that is a real release. Merging this cuts v2.0.29 automatically.

- script/version.ts creates the draft release v<version> that build-cli uploads archives to
- script/publish.ts publishes the draft once npm and the tag are out
- the v2 sync dropped both steps, so the v2.0.29 run failed with 'release not found'
@smakosh
smakosh merged commit ecb5152 into main Oct 15, 2026
7 checks passed
smakosh added a commit to theopenco/llmgateway that referenced this pull request Oct 15, 2026
## What

A blog post announcing DevPass Code 2.0:
[`apps/ui/src/content/blog/2026-10-15-devpass-code-smart-router.md`](https://github.com/theopenco/llmgateway/blob/docs/devpass-code-smart-router-blog/apps/ui/src/content/blog/2026-10-15-devpass-code-smart-router.md),
published at `/blog/devpass-code-smart-router`.

- **Smart Router**: before each message, a decision model on
`/v1/decisions` picks fast (`claude-haiku-5-5`), balanced
(`claude-sonnet-5-5`) or frontier (`claude-opus-5-5`).
- **Decision models**: users pick `jev-1.13.0` (the default),
`microsoft-decision-1` or `gpt-6-luna-decisions` with `/smart-router` or
`ctrl+t`.
- **Session tabs** from opencode v2, the tier override env vars, and
install/upgrade steps.
- The demo video is embedded from YouTube
([youtu.be/dYRPOwLP8V4](https://youtu.be/dYRPOwLP8V4)). It uses the same
`youtube-nocookie` iframe the guides use.
- The cover is a gpt-image-2 render with the official logo added by
`composite-logo.sh`, then reduced to a 256-color PNG (3.0 MB to 784 KB).

## Fact sources

- Behavior and defaults come from
`packages/core/src/plugin/provider/llmgateway.ts` and
`packages/tui/src/config/keybind.ts` in theopenco/devpass-code#4.
- Prices and context sizes come from `packages/models`.
- The demo numbers (8.9 s, 35.9 s, 12 tests, 4 clarifying questions)
come from the router logs of the recorded session.

## DevPass Code release

The install commands in the post need DevPass Code 2.x.
theopenco/devpass-code#5 fixed the release pipeline and v2.0.29 is out:
`npm view devpass-code dist-tags` returns `latest: 2.0.29`, a fresh `npm
i devpass-code@latest` runs as `devpass-code v2.0.29`, and the Homebrew
tap formula is at 2.0.29.

## Verification

- `pnpm exec turbo run build --filter=ui` passes, so the frontmatter
matches the schema.
- Rendered with `next start`: the page shows the cover, the 896×504
YouTube embed with the custom thumbnail, 3 tables, 6 sections and 5
FAQs, with Article, BreadcrumbList and FAQPage JSON-LD.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Added an announcement for DevPass Code 2.0 covering Smart Router
behavior, model options and costs, routing and fallback rules, session
tabs, configuration, and installation and upgrade guidance.
  * Included a demo, FAQ, image, and links to related resources.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Luca Steeb <contact@luca-steeb.com>
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