Solved

How can I deploy theme app extension using Azure DevOps without browser authentication?

Martin-NZPost
Tourist
11 1 2

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.

To run this command, log in to Shopify Partners.
👉 Press any key to open the login page on your browser
 

 Does anybody know any way around this? Preferable using CLI 3.x

Thanks 

Accepted Solution (1)
Martin-NZPost
Tourist
11 1 2

This is an accepted solution.

I didn't see this before
Deploy extensions in a CD pipeline (shopify.dev)
Generating the token works

View solution in original post

Replies 5 (5)

alagaesia
Shopify Partner
33 6 10

yarn shopify app deploy --api-key <ENV-API-KEY>

This is how I do it

Alessandro
Martin-NZPost
Tourist
11 1 2

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

Shopify CLI commands for apps

 

 

Martin-NZPost
Tourist
11 1 2

This is an accepted solution.

I didn't see this before
Deploy extensions in a CD pipeline (shopify.dev)
Generating the token works

usama4745
Shopify Partner
11 0 2

But how we can combine token along with npm ?

dahaaw
Shopify Partner
5 0 2

its work for me

SHOPIFY_CLI_PARTNERS_TOKEN=token npm run deploy