App reviews, troubleshooting, and recommendations
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi
I am trying to deploy our theme app extension to Shopify using Azure DevOps.
Where I have got stuck is running the 'npm run deploy' command in the YAML script in the pipeline, where I am being asked to authenticate on the browser.
Does anybody know any way around this? Preferable using CLI 3.x
Thanks
Solved! Go to the solution
This is an accepted solution.
I didn't see this before
Deploy extensions in a CD pipeline (shopify.dev)
Generating the token works
yarn shopify app deploy --api-key <ENV-API-KEY>
This is how I do it
Thanks, but that didn't work, I tried with npm
It does not appear to be an option in either CLI 3.x
Shopify CLI commands for apps
Or 2.x
This is an accepted solution.
I didn't see this before
Deploy extensions in a CD pipeline (shopify.dev)
Generating the token works
But how we can combine token along with npm ?
its work for me
SHOPIFY_CLI_PARTNERS_TOKEN=token npm run deploy