Skip to content

The engine publishes under latest, by the same rule as every other package - #240

Open
wmadden-electric wants to merge 1 commit into
mainfrom
fix/engine-publishes-under-latest
Open

The engine publishes under latest, by the same rule as every other package#240
wmadden-electric wants to merge 1 commit into
mainfrom
fix/engine-publishes-under-latest

Conversation

@wmadden-electric

Copy link
Copy Markdown
Contributor

A merged version-bump PR publishes that version under latest — that is the rule for prisma and @prisma/cli, and the engine was the exception: its bump merges on an ordinary push, whose publish run only had a dev half, so every new engine version (0.2.x, 0.3.0) reached the registry tagged dev while latest stayed stuck on the previous version until an operator hand-ran npm dist-tag add (which OIDC cannot do for the workflow).

This makes the engine follow the same rule, applied at its own version bump: the dev half publishes the engine's committed manifest version under latest (first — the CLI depends on it), then the dev-stamped @prisma/cli and prisma publish under dev, and the verify step now covers the engine too. An already-published engine version remains a no-op, and the engine stays out of the dev channel entirely — its line carries no pre-releases (ADR 0004), so every engine publish is a release and its first publish is the one moment OIDC can set the tag.

docs/oss/versioning.md is updated to state the rule and record the pre-2026-08-26 mis-tagging.

Not covered: @prisma/cli-engine@0.3.0 is already published, so this cannot retro-tag it — one final hand npm dist-tag add @prisma/cli-engine@0.3.0 latest is still owed.

Verified: pnpm lint, pnpm test:scripts.

🤖 Generated with Claude Code

…ckage

A merged version-bump PR is what publishes a version under latest. The engine's bump merges on an ordinary push, whose publish run only had a dev half — so the engine's first (and only possible) publish went out tagged dev, latest stayed on the previous version, and moving it needed a hand-run npm dist-tag add, which OIDC cannot do. 0.2.x and 0.3.0 all shipped mis-tagged this way.

The dev half now publishes the engine's committed version under latest before the dev-stamped CLI packages publish under dev, and verifies it resolves. An already-published engine version stays a no-op, and the engine stays out of the dev channel entirely: its line carries no pre-releases (ADR 0004), so every engine publish is a release.

Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
@coderabbitai

coderabbitai Bot commented Aug 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 26 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 64e241bd-9ff3-4611-a9bf-0b80dd35aa9d

📥 Commits

Reviewing files that changed from the base of the PR and between ade2273 and 5067933.

📒 Files selected for processing (2)
  • .github/workflows/publish.yml
  • docs/oss/versioning.md

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Aug 26, 2026

Copy link
Copy Markdown

Open in StackBlitz

npx https://pkg.pr.new/@prisma/cli@240
npx https://pkg.pr.new/@prisma/cli-engine@240

commit: 5067933

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