Is there anyway to deploy a new version of an extension linked to the main branch of a github repository, similar to what we have for themes?
Hi Pedro,
I feel this should be possible by working with Github actions and somehow connecting it to the CLI for deployment. Let me look into this a bit
I found this in the docs, which might help:
Shopify CLI builds UI extensions using ESBuild.It expects an extension script named
index.{ts,js,tsx,jsx}
to exist in the extension’s directory or thesrc/
subdirectory. Shopify CLI build process outputs the extension indist/index.js
when runningbuild
, and inside a temporary directory when runningdeploy
to prevent past build artifacts from leaking into the deploy bundle.
Hi Pedro,
The process for automating the deploy and release of app versions is documented here:
It’s the same for extension-only and embedded apps, just simpler for extension-only since you don’t need to deploy the hosted app anywhere.
Nick