11version : 2.1
2- jobs :
2+ orbs :
3+ cypress : cypress-io/cypress@1
4+ workflows :
35 build :
4- docker :
5- - image : circleci/node:10
6+ jobs :
7+ build :
8+ docker :
9+ - image : circleci/node:10
610
7- working_directory : ~/repo
11+ working_directory : ~/repo
812
9- steps :
10- - checkout
11- - restore_cache :
12- name : Restore Yarn Package Cache
13- keys :
14- - yarn-packages-{{ checksum "yarn.lock" }}
15- - run :
16- name : Install Yarn Dependencies
17- command : yarn
18- - save_cache :
19- name : Save Yarn Package Cache
20- key : yarn-packages-{{ checksum "yarn.lock" }}
21- paths :
22- - ./node_modules
23- # Lint Theme
24- - run : yarn lint
25- # Build Theme into .Zip
26- - run : yarn zip
27- # Move Theme Zip into Artifacts
28- - run :
29- name : Move Theme Zip into Artifacts
30- command : |
31- mkdir export
32- cp starter-theme.zip export/theme.zip
33- # Upload to Netlify & Deploy (Public Url for Shopify to Fetch Theme)
34- - run :
35- name : Upload Theme.zip to Netlify
36- command : ./node_modules/.bin/netlify deploy --dir=export --auth=${NETLIFY_AUTH_TOKEN} --site=${NETLIFY_SITE_ID} --prod
37- # Upload Theme to Shopify
38- - run :
39- name : Upload Theme to Shopify
40- command : .circleci/theme-upload.js
41- # List Shopify Themes
42- - run : yarn list-themes
43- # Continously Check for Preview Available
44- - run :
45- name : Check If Theme is Previewable
46- command : .circleci/theme-check.js
47- # Begin Fulls-site QA (Add as a new Job)
13+ steps :
14+ - checkout
15+ - restore_cache :
16+ name : Restore Yarn Package Cache
17+ keys :
18+ - yarn-packages-{{ checksum "yarn.lock" }}
19+ - run :
20+ name : Install Yarn Dependencies
21+ command : yarn
22+ - save_cache :
23+ name : Save Yarn Package Cache
24+ key : yarn-packages-{{ checksum "yarn.lock" }}
25+ paths :
26+ - ./node_modules
27+ # Lint Theme
28+ - run : yarn lint
29+ # Build Theme into .Zip
30+ - run : yarn zip
31+ # Move Theme Zip into Artifacts
32+ - run :
33+ name : Move Theme Zip into Artifacts
34+ command : |
35+ mkdir export
36+ cp starter-theme.zip export/theme.zip
37+ # Upload to Netlify & Deploy (Public Url for Shopify to Fetch Theme)
38+ - run :
39+ name : Upload Theme.zip to Netlify
40+ command : ./node_modules/.bin/netlify deploy --dir=export --auth=${NETLIFY_AUTH_TOKEN} --site=${NETLIFY_SITE_ID} --prod
41+ # Upload Theme to Shopify
42+ - run :
43+ name : Upload Theme to Shopify
44+ command : .circleci/theme-upload.js
45+ # List Shopify Themes
46+ - run : yarn list-themes
47+ # Continously Check for Preview Available
48+ - run :
49+ name : Check If Theme is Previewable
50+ command : .circleci/theme-check.js
51+ # Begin Fulls-site QA (Add as a new Job)
52+ cypress/run # "run" job comes from "cypress" orb
4853
4954
0 commit comments