To release a new version of Theme Kit, make sure to complete all of the following steps.
- Update
ThemeKitVersion
insrc/release/release.go
and commit your changes. - Make the release tool by running
go install ./cmd/tkrelease
. - Run
git tag <version> && git push origin --tags && git push
. - Update
changelog.txt
with the date of the version release.
-
Build all distributions by running
make all
. -
Release
tkrelease -k="AWS_ACCESS_KEY" -s="AWS_SECRET_KEY" vX.X.X
.Note: If you're releasing a different version than in
src/release/version.go
, then you can use-f
to force. Sometimes this is necessary for specific issue tags likev0.0.0-issue432
when trying to debug a issue. Using beta/alpha tags on the version number will stopthemekit
from automatically updating to that version. It would have to be typed in specifically (for example,theme update --version=v1.0.4-rc1
).
- In GitHub, create a new release for the tag.
- Include a brief summary of all the changes pertaining to the release.
- Include links to the pull requests that introduced the changes.
- Include the md5(
make md5s
) checksums in the description. - Upload the zipped binary files from
build/release
.
- Open a pull request in shopify-dev to update the Theme Kit documentation.
- Commit your changes and tag the partner-facing docs team (@Shopify/dev-docs) for review. After the PR is approved, and the new Theme Kit version is released, merge the docs PR.
Note: Before proceeding with the remaining steps, consider waiting a day. If a defect is reported shortly after we make the release public, then we'll need to issue a patch release.
- Update the manual installation links on the GitHub releases page and in the main README.
- Verify that the links work, as expected.
Update the Chocolatey package in the choco
folder:
- Update the version in
choco/themekit.nuspec
. - Update the version and checksums in
choco/tools/chocolateyinstall.ps1
. - Run
choco pack
in a window VM. - Log into Chocolatey (use
themekit@shopify.com
for your credentials) and submit an update for approval.
Update the themekit.rb
formula for Homebrew on homebrew-shopify:
- Run
make sha
to generate the SHA256 for the darwin build. - Update the link, SHA, and version in the Homebrew formula.