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

Ouverte
#9,138 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
45/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
graphql, typescript
Domaine
cli

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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?

Langage dominant
TypeScript
Étoiles
778
Forks
306
Merge moyen
1 j 23 h
PR mergées (30 j)
108

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Shopify/cli

Toutes les issues de Shopify/cli

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.