File tree Expand file tree Collapse file tree 2 files changed +12
-17
lines changed
Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,14 @@ jobs:
1212 name : Restore Yarn Package Cache
1313 keys :
1414 - yarn-packages-{{ checksum "yarn.lock" }}
15- - run : yarn
15+ - run :
16+ name : Install Yarn Dependencies
17+ command : yarn
1618 - save_cache :
1719 name : Save Yarn Package Cache
1820 key : yarn-packages-{{ checksum "yarn.lock" }}
1921 paths :
20- - ~/.cache/yarn
22+ - ./node_modules
2123 # Lint Theme
2224 - run : yarn lint
2325 # Build Theme into .Zip
@@ -28,16 +30,14 @@ jobs:
2830 command : |
2931 mkdir export
3032 cp starter-theme.zip export/theme.zip
31- # - store_artifacts:
32- # path: /tmp/artifacts
33- # - store_artifacts:
34- # path: export
35- # Upload to Netlify & Deploy
36- # NETLIFY_SITE_ID
37- # NETLIFY_AUTH_TOKEN
38- - run : ./node_modules/.bin/netlify deploy --dir=export --auth=${NETLIFY_AUTH_TOKEN} --site=${NETLIFY_SITE_ID} --prod
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
3937 # Upload Theme to Shopify
40- - run : .circleci/theme-upload.js
38+ - run :
39+ name : Upload Theme to Shopify
40+ command : .circleci/theme-upload.js
4141 # List Shopify Themes
4242 - run : yarn list-themes
4343 # Continously Check for Preview Available (Can browser test...)
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22
33const Shopify = require ( 'shopify-api-node' ) ;
4- //const program = require('commander');
54const bot = require ( 'circle-github-bot' ) . create ( ) ;
65
76require ( 'dotenv' ) . config ( ) ;
@@ -33,11 +32,7 @@ const shopify = new Shopify({
3332 🌈 Create New Theme Based on Build
3433*/
3534const themeName = `Debut-${ Date . now ( ) } ` ;
36- //const themeUrl = `${process.env.CIRCLE_BUILD_URL}/artifacts/0/${process.env.HOME}/repo/export/theme.zip`;
37- const themeUrl = `https://5ce8c36a43aa24a5254486fb--loving-turing-94c788.netlify.com/theme.zip` ;
38-
39- //console.log(`${process.env.CIRCLE_BUILD_URL}/artifacts/0/tmp/artifacts/theme.zip`);
40- console . log ( themeUrl ) ;
35+ const themeUrl = `https://loving-turing-94c788.netlify.com/theme.zip` ;
4136
4237shopify . theme . create ( {
4338 name : themeName ,
You can’t perform that action at this time.
0 commit comments