Skip to content

fix(ci): keep v7 dev builds of @prisma/* on dev; only prisma uses prev-dev - #31181

Merged
wmadden-electric merged 3 commits into
v7from
fix/v7-dev-tag-only-for-prisma
Nov 23, 2026
Merged

wmadden-electric merged 3 commits into
v7from
fix/v7-dev-tag-only-for-prisma

Conversation

@wmadden-electric

@wmadden-electric wmadden-electric commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

After this change, a push to v7 publishes:

Package Tag Before this change
prisma prev-dev prev-dev
the 43 @prisma/* packages dev prev-dev

A dry run of scripts/ci/publish.ts on this branch against live npm (nothing published) chose version 7.11.0-dev.2, ran pnpm publish --tag dev for the 43 @prisma/* packages and pnpm publish --tag prev-dev for prisma.

Why

#31055 moved Prisma 7 dev builds of every package from dev to prev-dev. That was only needed for prisma, the one package prisma/prisma-cli also publishes (it owns latest, dev and next there). No @prisma/* package has a Prisma 8 version: on npm each has latest at 7.10.1, and only this branch publishes them. So their dev tag was never contested, and moving them left dev stuck on the stale 8.1.0-dev.12.

Dev builds now follow the same split stable releases already use: prisma on prev / prev-dev, everything else on latest / dev. The first push to v7 after this merges moves dev on every @prisma/* package to 7.11.0-dev.2, with no manual step.

How

  • getPublishChannel returns dev for a push to v7 again.
  • getPackageDistTag maps the run's tag for prisma only (latest to prev, dev to prev-dev), then refuses any result that is a tag prisma-cli owns. next is therefore still refused, and removing a mapping later fails loudly instead of publishing Prisma 7 over Prisma 8.
  • Version selection is unchanged.

Clean-up on npm, needs npm rights

The one publish between #31055 and this change put a prev-dev tag on the 43 @prisma/* packages, at 7.11.0-dev.1. Nothing will move it again, so it should be removed. Do not remove it from prisma.

for p in @prisma/adapter-better-sqlite3 @prisma/adapter-d1 @prisma/adapter-libsql @prisma/adapter-mariadb @prisma/adapter-mssql @prisma/adapter-neon @prisma/adapter-pg @prisma/adapter-planetscale @prisma/adapter-ppg @prisma/client @prisma/client-common @prisma/client-engine-runtime @prisma/client-generator-js @prisma/client-generator-registry @prisma/client-generator-ts @prisma/client-runtime-utils @prisma/config @prisma/credentials-store @prisma/debug @prisma/dmmf @prisma/driver-adapter-utils @prisma/engines @prisma/fetch-engine @prisma/generator @prisma/generator-helper @prisma/get-dmmf @prisma/get-platform @prisma/instrumentation @prisma/instrumentation-contract @prisma/internals @prisma/json-protocol @prisma/migrate @prisma/nextjs-monorepo-workaround-plugin @prisma/param-graph @prisma/param-graph-builder @prisma/prisma7 @prisma/query-plan-executor @prisma/schema-files-loader @prisma/sqlcommenter @prisma/sqlcommenter-query-insights @prisma/sqlcommenter-query-tags @prisma/sqlcommenter-trace-context @prisma/ts-builders; do npm dist-tag rm "$p" prev-dev; done

Do not use the v7-manage-dist-tag.yml workflow for this: it covers three packages only, and it would also remove prisma@prev-dev.

To install a Prisma 7 dev build: npm i prisma@prev-dev @prisma/client@dev.

Not changed

Agent: taliesin-31

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Release Management
    • Stable releases of the prisma package are published under prev, and development builds under prev-dev.
    • The @prisma/* packages continue to use latest for stable releases and dev for development builds.
    • Development builds from v7 now use the dev channel. The prisma package does not use next; that tag remains available for @prisma/* packages.

wmadden-electric and others added 2 commits November 23, 2026 15:34
…v-dev

The previous change moved Prisma 7 dev builds of every package from `dev` to `prev-dev`. Only `prisma` needed that: prisma/prisma-cli publishes Prisma 8 under `prisma@dev`, but the `@prisma/*` packages have no Prisma 8 version and only this branch publishes them, so their `dev` tag was never contested. Since that change, `@prisma/*@dev` is stuck on the stale `8.1.0-dev.12` and their dev builds sit on a tag nobody expects.

Dev builds now mirror stable releases. The dev channel's tag is `dev` again, and `getPackageDistTag` maps it to `prev-dev` for `prisma`, as it already maps `latest` to `prev`. `prisma` under `next` is still refused. Every other package keeps the channel's tag. The 7.x version logic is unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
The rule that prisma never lands on latest, dev or next depended on the contents of the mapping table: only next had a check. Check the mapped tag against the full set, and test every run tag against it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The publish-channel logic now returns dev for the default development channel. The prisma package maps latest and dev to prev and prev-dev. Other packages retain their supplied tags. Tests and documentation reflect the updated rules.

Changes: Publish tag handling

Layer / File(s) Summary
Development channel selection
scripts/ci/publish-channel.ts, scripts/ci/publish-channel.test.ts
The default development channel now returns dev. The v7 push test expects the dev tag.
Package-specific tag mapping
scripts/ci/publish-channel.ts, scripts/ci/publish-channel.test.ts, AGENTS.md
For prisma, latest maps to prev and dev maps to prev-dev. The code rejects tags owned by Prisma 8. Other packages retain the supplied tag. Tests and documentation describe these rules.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: Minimal · up to dffeb

This change restores dev publishing for @prisma/* packages while prisma stays on prev and prev-dev, and it refuses to publish prisma under tags owned by Prisma 8. No concrete merge-blocking risk was found. The one-time removal of the leftover prev-dev tags from the @prisma/* packages is an npm-rights task outside the code.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: v7 dev builds of @prisma/* packages stay on the dev tag, while only the prisma package moves to prev-dev. The raw summary and objectives both describe this change: get…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: v7 dev builds of @prisma/* packages stay on the dev tag, while only the prisma package moves to prev-dev. The raw summary and objectives both describe this change: getPublishChannel now returns dev, and prisma is remapped to prev-dev. The title is specific and matches the changeset, so it passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: prisma/orm
  • Branch: v7
  • File: .coderabbit.yml
  • Commit: 252bce5
  • Layers: Repository YAML
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 2789058c-856b-45fe-ba6b-87ad2e957b9d
Commits

Reviewing files that changed from the base of the PR and between 252bce5 and dffeb30.

Files selected for processing: 3

  • AGENTS.md
  • scripts/ci/publish-channel.test.ts
  • scripts/ci/publish-channel.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
packages/client/runtime/index-browser.js 2.29 KB (0%)
packages/client/runtime/index-browser.d.ts 3.37 KB (0%)
packages/cli/build/index.js 110 B (0%)
packages/client/prisma-client-0.0.0.tgz 25.6 MB (0%)
packages/cli/prisma-0.0.0.tgz 13.52 MB (0%)
packages/bundle-size/da-workers-libsql/output.tgz 1.28 MB (0%)
packages/bundle-size/da-workers-neon/output.tgz 1.35 MB (0%)
packages/bundle-size/da-workers-pg/output.tgz 1.34 MB (0%)
packages/bundle-size/da-workers-planetscale/output.tgz 1.29 MB (0%)
packages/bundle-size/da-workers-d1/output.tgz 1.26 MB (0%)

@wmadden-electric
wmadden-electric marked this pull request as ready for review November 23, 2026 05:24
@wmadden-electric
wmadden-electric merged commit 6285605 into v7 Nov 23, 2026
485 of 487 checks passed
@wmadden-electric
wmadden-electric deleted the fix/v7-dev-tag-only-for-prisma branch November 23, 2026 10:52
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.

2 participants