Repository navigation
TML-3513: An ORM release tells prisma-cli at once, so the CLI follows it within minutes - #30944
Conversation
…n it is missing The notify step read PRISMA_CLI_DISPATCH_PAT, a secret this repository never had, and skipped with exit 0. So prisma-cli heard about rc.22 only from its daily run the next morning. DEPLOY_GITHUB_TOKEN is the token prisma-cli docs/oss/release-automation.md names, and Composer already sends its notice with it. Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…limit Dev pushes and beta dispatches start a prisma-cli run that follows only release tags, so they changed nothing there. The error now says the packages are already published. Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
@prisma/orm-extension-arktype-json
@prisma/orm-extension-middleware-cache
@prisma/orm-extension-paradedb
@prisma/orm-extension-pgvector
@prisma/orm-extension-postgis
@prisma/orm-extension-supabase
@prisma/orm-family-mongo
@prisma/orm-family-sql
@prisma/orm-framework
@prisma/orm-mongo
@prisma/orm-mysql
@prisma/orm-postgres
@prisma/orm-postgres-contrib
@prisma/orm-sqlite
@prisma/orm-target-mongo
@prisma/orm-target-mysql
@prisma/orm-target-postgres
@prisma/orm-target-sqlite
@prisma/orm-toolchain
commit: |
size-limit report 📦
|
…pins an older ORM toolchain (#384) When a product publishes a release, the version-follow pull request now releases the CLI too: ```text Release 8.0.0-rc.31: follow the products' released versions: @prisma/orm-toolchain 8.0.0-rc.22 -> 8.0.0-rc.23 ``` `update-product-versions.yml` moves the pins as before, then runs `pnpm bump-version`. When the pull request passes its checks and merges, the root version changes, so `publish.yml` publishes the release under `latest`. No person needs to cut it. ## Why `[email protected]` pinned `@prisma/orm-toolchain` 8.0.0-rc.21 for four days after ORM rc.22 shipped. A project on ORM rc.22 installed two toolchains, and the CLI ran the old one ([reported on Discord](https://discord.com/channels/937751382725886062/1477940100561244295/1566776463729102999)). - The follow pull request #381 merged on 2026-10-31, but it shipped only a dev build. - The release pull request #380 waited four days for a review. The same thing happened with rc.21 in October. A CLI behind a product release breaks every project on that release, so the release should not wait for someone to remember it. ## What changes 1. **The follow pull request bumps the version.** It runs `pnpm bump-version` and stages every file it changes: the workspace manifests, the lockfile and the version stamp in `skills/prisma-platform-core-concepts/SKILL.md`. The title starts with `Release <version>:`. 2. **Open release pull requests are closed as superseded.** A `Bump to version` pull request would race the same version number. Older follow pull requests are closed as before. 3. **Pins on `main` that no release shipped are released.** Suppose a maintainer's release merges first and takes the version number. Then the follow pull request's squash changes no version and ships only a dev build, and the registry comparison finds nothing left to move. So on the release channel, `update-product-versions.mjs` now compares `main`'s pins with the manifests at the last release's tag, `v<version>`. The next run, or the daily run at the latest, opens a release for those pins. The checkout fetches tags for this. 4. **`bump-version` passes `--no-frozen-lockfile`**, because pnpm defaults to a frozen lockfile in CI. A release for a change in this repository alone is still cut by a maintainer. `docs/oss/release-automation.md`, `docs/oss/versioning.md` and the README now say this. They also say the merge still needs the one approving review the `main` ruleset requires, which CodeRabbit gives today. ## How it was checked - `pnpm bump-version` with `CI=true` moved rc.30 to rc.31 and changed exactly those files. `git add -u` stages exactly them. - New tests for `pinChanges`, and `pnpm test:scripts` passes (89 tests). `actionlint` and `pnpm lint` pass. - Against the real registry: on `main` today, the release channel reports no change. With the root version set back to rc.29, it reports the three pins rc.30 shipped. ## Alternatives considered - **Keep releases manual, and open the release pull request automatically for a person to approve.** This removes the step of remembering, but #380 shows an approval can wait for days. - **Only alert when `prisma@latest` falls behind.** The nightly getting-started check in prisma/getting-started-eval now does this, as a second line of defence. Alone, it reports the problem without fixing it. Related: prisma/orm#30944 makes the ORM's publish workflow notify this repository at once. It read a secret that was never set, so the follow pull request waited for the daily run. Refs TML-3439. Agent: uther-28 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
When the ORM publishes a release, the publish workflow now tells prisma-cli at once, as it was meant to:
Why
The step read
PRISMA_CLI_DISPATCH_PAT, a secret this repository has never had, and skipped with exit 0. On the 8.0.0-rc.22 publish it printed "PRISMA_CLI_DISPATCH_PAT is not configured; skipping". prisma-cli only noticed rc.22 at its daily run the next morning, 17 hours later.DEPLOY_GITHUB_TOKENis set in this repository. It is the token prisma-cli'sdocs/oss/release-automation.mdnames for this notice, and prisma/composer already sends its notice with it.What changes
DEPLOY_GITHUB_TOKENthroughgh api, the same call Composer makes.latestreleases. Dev pushes would start a prisma-cli run that changes nothing, because prisma-cli follows release tags only.curlcall it replaces.With prisma/prisma-cli's change that makes a product release cut a CLI release, an ORM release reaches
prisma@latestwithin minutes. Together they close the gap a user reported on Discord, where[email protected]pinned@prisma/orm-toolchain8.0.0-rc.21 for four days after ORM rc.22 shipped.Not verified
A real dispatch from this repository. The first
latestrelease after this merges will show it.Closes TML-3513.
Agent: uther-28
🤖 Generated with Claude Code
Summary by CodeRabbit