1.4.10 • Published 11 months ago

@somethingdigital/somethingdigital-shopify-deploybot v1.4.10

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

Shopify Deploybot

This is a node module to assist with deploying to Shopify stores. It's meant to be used with the Something Digital Azure Devops Pipelines.

By default, the deployed theme contains the deployment date and commit hash. However, because the theme title can be changed by the merchant, the deployment tooling injects a new file called deploybot-meta.json within the /assets. This file contains the date of deployment and the commit hash which was used during that deployment. This allows our tooling to know what version is deployed even after a theme name is changed in the admin. The file is accessible via Shopify theme code editor and also via the customer storefront for automated performance tooling.

Example:

{
  "commitHash": "d90cad85f0b786e405c3f6c53d8777b21bdc77fb",
  "deployDate": "Wed Jun 03 2020 17:54:27 GMT+0000 (Coordinated Universal Time)"
}

Install

To install, run npm i -g @somethingdigital/somethingdigital-shopify-deploybot@{version}, where {version} is the specific version needed (can be excluded for latest version).

To run a command, run deploybot <command>.

Publish new version

To publish a new version on npm, run npm publish.

Commands

CommandPurpose
commitHashRetrieves latest commit hash of live theme
downloadDownload the live theme. Used during nightly theme sync
prepDownload live theme settings
uploadUpload theme.zip to shop
checkCheck if theme is processing.
publishPublish theme
cleanupDelete theme if PR or keep up to 5 releases for main/develop deploy.

Parameters coming soon.

Development

  1. Run npm install to install dependencies.
  2. Copy .env.sample to .env and add appropriate credentials
  3. Run npm link to symlink cli bin tool.
  4. Run npx deploybot <command> to run a command
  5. Once you're finished developing, run npm unlink
1.4.10

11 months ago

1.4.6

11 months ago

1.4.5

11 months ago

1.4.4

11 months ago

1.4.9

11 months ago

1.4.8

11 months ago

1.4.7

11 months ago

1.4.3

11 months ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.10

3 years ago

1.3.8

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.4

3 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.3

4 years ago

1.1.0

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago