theme publish / themePublish goes through while a Rollout is attached to the live theme and deletes its theme edits — Help Center says it should be refused

Offen
#9,138 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
graphql, typescript
Bereich
cli

Rechercherichtung

Start by tracing the theme publish command and the themePublish(id:) GraphQL mutation it sends, then check the publish flow for attached rollouts. Reproduce with an open Launch rollout that has a theme customization and confirm whether publishing is refused while preserving the rollout edits. The issue does not name relevant files or tests, so locate the publish implementation and its tests before deciding on a change.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

The Help Center (Managing rollouts) says a theme published from Shopify CLI or the GraphQL Admin API isn't published while rollouts are attached to the live theme, and that those rollouts must be ended or archived first. On 2026-10-22 we saw exactly that: shopify theme publish (CLI 4.9.4) failed with "Theme cannot be published when the published theme has attached rollouts. Unlink … before trying again."

On 2026-11-16, on a Plus development store, we created a draft Launch rollout and changed one setting of the live theme inside it in the theme editor. The Rollouts list showed 6 markets and a customization. We then ran shopify theme publish --theme <id> --force from GitHub Actions with a Theme Access password:

  • CLI 5.0.1: published (twice)
  • CLI 4.9.4: published

Each time the new theme went live and the rollout lost its customization; it no longer showed markets or a customization. Both CLI versions send the same themePublish(id:) mutation.

Expected: the publish is refused, as documented, and the rollout keeps its theme edits.
Questions: Is this an intended change? If so, could the Help Center be updated? Is there a supported way to stop a CLI or CI publish from removing open rollouts' theme edits?

Vorherrschende Sprache
TypeScript
Sterne
778
Forks
306
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
108

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Shopify/cli

Alle Issues in Shopify/cli

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.