Deploy fails with prisma ≥ 8.0.0-rc.30: --stage has been replaced by --environment

未关闭
#23 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
bun, github-actions, javascript, node.js
领域
ci-cd, devops

调研方向

The failing command is built in the action's deploy step, where it passes --stage to prisma deploy; search the repository for --stage to find that call. Check how the CLI version is resolved and whether the flag can be switched to --environment for newer prisma versions while keeping older ones working. Done when the deploy step runs with prisma 8.0.0-rc.33 and older pinned versions still pass a test or manual run.

由索引模型根据 Issue 内容生成。

描述

The action runs prisma deploy --entry <module> --stage <stage>. The Prisma CLI removed --stage in 8.0.0-rc.30, so repos with a newer local prisma devDependency fail at the deploy step. The build step succeeds first.

Steps to reproduce

  1. Add "prisma": "8.0.0-rc.33" to the repo's devDependencies.
  2. Use the action with module: module.mjs.
  3. Push a branch.

Actual behavior

$ bun run --bun prisma deploy --entry module.mjs --stage my-branch
✘ [CLI.COMMAND_MOVED] `--stage` on `deploy` has been replaced
  why: A place the app runs is now called an environment.
→ Use the replacement: prisma deploy --environment <name>
error: "prisma" exited with code 2
##[error]deploy failed: ... exited with status 2

Expected behavior

The action deploys with the CLI version the repo has installed.

Environment

  • Action: prisma/cloud-deploy-action@v1 (resolves to v1.10.0, 5e15880)
  • prisma: 8.0.0-rc.33
  • @prisma/composer: 0.38.0
  • Runner: ubuntu-latest, Node 24, bun 1.3.13
主要语言
JavaScript
星标
2
派生
6
平均合并
1 天 14 小时
30 天内合并 PR
4

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。