@prisma/cli 8.0.0-rc.15-dev.106 → 8.0.0-rc.15-dev.107

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +24 -8
  2. package/package.json +7 -7
package/dist/cli.js CHANGED
@@ -5339,6 +5339,13 @@ function installWaitFailedError(repository, installUrl, inspectableInstallationC
5339
5339
  //#endregion
5340
5340
  //#region src/commands/git/connect.ts
5341
5341
  /** The `git connect` command. */
5342
+ /** Where the deploy workflow's inputs and the minimal file are documented. */
5343
+ const WORKFLOW_DOCS_URL = "https://github.com/prisma/cloud-deploy-action#readme";
5344
+ /** The platform never builds on push; the repository's own Actions workflow
5345
+ * does, so a connection without one deploys nothing. Console import writes
5346
+ * the file through a setup pull request; this command does not. */
5347
+ const WORKFLOW_DETAIL = "Deploys run from the repository's GitHub Actions workflow (prisma/cloud-deploy-action), which must exist on each pushed branch; the platform does not build on push.";
5348
+ const WORKFLOW_NEXT_STEP = "If the repository has no .github/workflows/prisma-deploy.yml yet, add one running prisma/cloud-deploy-action@v1 with `id-token: write`; a push of any branch that lacks the file deploys nothing.";
5342
5349
  /** The legacy wait line, printed once before the poll loop. */
5343
5350
  const WAIT_MESSAGE = "Waiting for GitHub App installation or repository access approval...";
5344
5351
  /**
@@ -5375,12 +5382,21 @@ async function resolveInstalledRepository(ctx, api, workspaceId, repository) {
5375
5382
  if (match === null) throw installWaitFailedError(repository, installUrl, inspectableInstallationCount);
5376
5383
  return match;
5377
5384
  }
5385
+ /** The connect result in every mode: the connection card, plus the
5386
+ * workflow step the platform will not do for you. */
5378
5387
  function connectPresentations(result) {
5379
5388
  const connection = result.repositoryConnection;
5380
5389
  return {
5381
5390
  stdout: () => [],
5382
5391
  json: () => result,
5383
- next: () => [],
5392
+ next: () => [{
5393
+ kind: "edit-file",
5394
+ label: WORKFLOW_NEXT_STEP
5395
+ }, {
5396
+ kind: "open-url",
5397
+ label: "Workflow reference (prisma/cloud-deploy-action)",
5398
+ url: WORKFLOW_DOCS_URL
5399
+ }],
5384
5400
  human: () => [
5385
5401
  {
5386
5402
  kind: "summary",
@@ -5410,7 +5426,7 @@ function connectPresentations(result) {
5410
5426
  },
5411
5427
  {
5412
5428
  kind: "list",
5413
- items: [formatGitConnectionDetail(connection.status)]
5429
+ items: [formatGitConnectionDetail(connection.status), WORKFLOW_DETAIL]
5414
5430
  }
5415
5431
  ]
5416
5432
  };
@@ -5424,8 +5440,8 @@ const gitConnectCommand = defineCommand({
5424
5440
  flags: { project: projectFlag$2 }
5425
5441
  },
5426
5442
  help: {
5427
- summary: "Connect a project to a GitHub repository so every push deploys",
5428
- description: "Turns on deploy-on-push: once connected, pushing a Git branch builds and deploys it to a matching Platform Branch, an isolated environment with its own services, databases, and buckets. If the Prisma GitHub App does not cover the repository yet, the command opens the install page and waits. Run without a URL to use this repository's origin remote.",
5443
+ summary: "Connect a project to a GitHub repository so its deploy workflow deploys every push",
5444
+ description: "Links the repository to the project. Once connected, the repository's prisma/cloud-deploy-action workflow authenticates each run through GitHub's OIDC token and deploys every pushed branch to a matching Platform Branch, an isolated environment with its own services, databases, and buckets. The platform does not build on push itself: a repository without the workflow must add .github/workflows/prisma-deploy.yml (importing in the Console opens a pull request that adds it). If the Prisma GitHub App does not cover the repository yet, the command opens the install page and waits. Run without a URL to use this repository's origin remote.",
5429
5445
  examples: [
5430
5446
  "git connect",
5431
5447
  "git connect git@github.com:prisma/prisma-cli.git",
@@ -13086,7 +13102,7 @@ const cliGroups = {
13086
13102
  },
13087
13103
  {
13088
13104
  run: "git connect",
13089
- brief: "Connect GitHub so every push deploys"
13105
+ brief: "Connect GitHub; branches carrying the deploy workflow deploy on push"
13090
13106
  },
13091
13107
  {
13092
13108
  run: "project env add KEY=value --role preview",
@@ -13144,8 +13160,8 @@ const cliGroups = {
13144
13160
  description: "A Branch maps to a Git branch of the connected repository. Each is an isolated environment with its own services, databases, buckets, and environment variables: the production branch serves live traffic, every other branch is a preview."
13145
13161
  },
13146
13162
  git: {
13147
- brief: "Manage the GitHub connection that deploys on push. Connect or disconnect a repository",
13148
- description: "Connecting a GitHub repository turns on deploy-on-push: pushing a Git branch builds and deploys it to a matching Platform Branch. Disconnecting stops push deploys without touching anything already deployed."
13163
+ brief: "Manage the GitHub connection behind deploy-on-push. Connect or disconnect a repository",
13164
+ description: "Connecting a GitHub repository turns on deploy-on-push: the repository's prisma/cloud-deploy-action workflow authenticates through the connection and deploys every pushed branch to a matching Platform Branch. The platform does not build on push; the workflow does. Disconnecting stops push deploys without touching anything already deployed."
13149
13165
  },
13150
13166
  service: {
13151
13167
  brief: "Manage deployed services. Logs, versions, promote and rollback releases, custom domains",
@@ -13326,7 +13342,7 @@ function buildCli() {
13326
13342
  },
13327
13343
  {
13328
13344
  run: "git connect",
13329
- brief: "Connect GitHub so every push deploys"
13345
+ brief: "Connect GitHub; branches carrying the deploy workflow deploy on push"
13330
13346
  },
13331
13347
  {
13332
13348
  run: "deploy",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/cli",
3
- "version": "8.0.0-rc.15-dev.106",
3
+ "version": "8.0.0-rc.15-dev.107",
4
4
  "description": "Command-line interface for the Prisma Developer Platform.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -41,10 +41,10 @@
41
41
  "dependencies": {
42
42
  "@manypkg/tools": "^2.1.2",
43
43
  "@prisma/cli-engine": "0.4.0",
44
- "@prisma/composer-cli": "0.20.0-dev.1",
44
+ "@prisma/composer-cli": "0.20.0-dev.5",
45
45
  "@prisma/compute-sdk": "0.42.0",
46
46
  "@prisma/management-api-sdk": "1.69.0",
47
- "@prisma/orm-toolchain": "8.0.0-rc.11-dev.3",
47
+ "@prisma/orm-toolchain": "8.0.0-rc.11-dev.13",
48
48
  "@vercel/detect-agent": "^1.2.3",
49
49
  "better-result": "^2.9.2",
50
50
  "cross-spawn": "^7.0.6",
@@ -53,11 +53,11 @@
53
53
  "open": "^11.0.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@prisma/composer": "0.20.0-dev.1",
56
+ "@prisma/composer": "0.20.0-dev.5",
57
57
  "@prisma/credentials-store": "^7.8.0",
58
- "@repo/cli-conformance": "8.0.0-rc.15-dev.106",
59
- "@repo/cli-telemetry": "8.0.0-rc.15-dev.106",
60
- "@repo/tsconfig": "8.0.0-rc.15-dev.106",
58
+ "@repo/cli-conformance": "8.0.0-rc.15-dev.107",
59
+ "@repo/cli-telemetry": "8.0.0-rc.15-dev.107",
60
+ "@repo/tsconfig": "8.0.0-rc.15-dev.107",
61
61
  "@types/node": "^22.19.19",
62
62
  "@types/cross-spawn": "^6.0.6",
63
63
  "tsdown": "^0.21.10",