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.
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025