Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I’m using the Shopify <> Github integration for the main branch. We have build files, which shouldn’t be in the repository. We are using a Github Action, which creates and deploys the build files to the live theme. That leads to, that the Github integration adding the build files back to the repository, although the `.shopifyignore` listing these files explicit.
.shopifyignore:
package.json src/ assets/checkout.bundle.js assets/checkout.bundle.js.map assets/checkout-legacy.bundle.js assets/checkout-legacy.bundle.js.map assets/components.bundle.js assets/components.bundle.js.map assets/components-legacy.bundle.js assets/components-legacy.bundle.js.map assets/index.css assets/index.css.map
These files are of course also in the .gitignore and we don’t commit these. But Shopify is still pushing these back into the repository.
I got an update from the Shopify Plus Support:
The Shopify Support says its the expected behaviour, since the Github <> Shopify Integration is just a 1:1 mirror of the Github repository and ignores the content of config files (e.g. the .shopifyignore).
So unfortunately there is no workaround currently besides deactivate the Github Integration. 😕 Maybe the Integration will get an update.
Also encountering this issue. What we are doing as a workaround is:
It works ok, but does require some manual conflict resolution. It's way overly complicated for something that should be relatively straightforward. Deploying a single theme with a build step to multiple shops is a very common use case, but unfortunately Shopify has pushed for a strongly opinionated theme development system (no build process), and a backwards way of thinking about theme content management (content / settings data being stored in theme files instead of a separate data layer that is abstracted from the theme), so this is where we end up.
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024