stencil-cli icon indicating copy to clipboard operation
stencil-cli copied to clipboard

specify config file?

Open meecect opened this issue 2 years ago • 1 comments

Is there a way to specify the config.stencil.json file to use?

I want one repo that I can push to my sandbox and to production, and have two config files.

meecect avatar Nov 22 '23 20:11 meecect

You could check cornerstore theme workflow file.

https://github.com/bigcommerce/cornerstone/blob/master/.github/workflow-examples/automatic_deployment_production.yml

Just add config files to the gitignore and run stencil init with your production credentials.

 - name: Connect to store
      env:
        URL: ${{ secrets.STENCIL_STORE_URL_PRODUCTION }}
        TOKEN: ${{ secrets.STENCIL_ACCESS_TOKEN_PRODUCTION }}
      run: stencil init -u $URL -t $TOKEN -p 3000 -h https://api.bigcommerce.com

    - name: Push theme live, automatically deleting oldest theme if necessary
      run: stencil push -a -d -c 1

oxo-fi-fi avatar Nov 23 '23 09:11 oxo-fi-fi