stencil-cli
stencil-cli copied to clipboard
specify config file?
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.
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