-
Notifications
You must be signed in to change notification settings - Fork 363
Add shipit deploys of built theme to S3 #36
Conversation
@Shopify/themes-fed |
d0c61a2
to
e689203
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering, what version of node is shipit using? I wonder if you could simplify some of this code with ES6? For example, using arrow function so you don't have to .bind(this)
.
AWS.config.credentials = new AWS.Credentials(config.access_key_id, config.secret_access_key); | ||
AWS.config.region = 'us-east-1'; | ||
} else { | ||
console.log('Missing AWS secrets. You must decrypt the ejson first.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think console.error
would be better here
ACL: 'public-read' | ||
}, function (err, data) { | ||
if (err) { | ||
console.log(err, err.stack); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.error
c7b7132
to
65089e8
Compare
65089e8
to
d27308d
Compare
LGTM 👍 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
we can use shipit to deploy versioned
slate-theme.zip
to https://sdks.shopifycdn.com/slate/latest/slate-theme.zip or https://sdks-staging.shopifycdn.com/slate/latest/slate-theme.zip for the latest build orhttps://sdks[-staging].shopifycdn.com/slate/[version-number]/slate-theme.zip
for a versioned build.