Repository navigation
fix(release): create the GitHub release before upload - #5
Merged
Merged
Conversation
- 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
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The publish run after #4 merged (run 38647018204) failed in
build-cli:packages/cli/script/build.tsuploads the archives to a GitHub release, but nothing creates that release any more. Before the v2 sync,script/version.tscreated a draft release andscript/publish.tspublished 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. Becausebuild-clifailed,publishwas 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 releasev<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
oxlintandprettierpass on both files, and both scripts build withbun build.gh release view v2.0.29returns "release not found" today, so the next run takes the create path.