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

Aperta
#9,138 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
graphql, typescript
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?

Lingua principale
TypeScript
Stelle
778
Fork
306
Merge medio
1g 23h
PR unite (30g)
108

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Shopify/cli

Tutte le issue di Shopify/cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.