Note🗒️ The following steps require admin access to the GitHub repo.
- Ensure you have the latest
master
branch including all tags:
git checkout master && git pull
Note git pull
should be used instead of git pull origin master
to ensure that tags are pulled as well.
-
Go into every package that is being released. Edit
CHANGELOG.md
by moving any line items fromUnreleased
section into a new release with the new section with the new version number and today's date as title. (eg.1.0.0 - 2019-07-24
). -
Stage the
CHANGELOG.md
changes using
git add .
Note🗒️ lerna will make these staged changes part of the publish commit during the final confirmation of yarn release
- Begin the release process:
yarn release
- Follow the prompts to choose a version for each package. If you are releasing a new package, we encourage you to version it
1.0.0
to start with.
Note🗒️ Packages adhere to Semantic Versioning.
The following will push the changes and new tags to GitHub
git push origin master --follow-tags
-
Log in to Shipit
-
When CI is 🍏 on the commit titled
Publish
, pressDeploy
to update packages on npm.
-
In your branch, run
yarn run release
. Lerna will launch it's CLI to select a version for the changed packages. Select theCustom
option and enter a version with an appended-beta.X
(eg.0.29.10-my-feature-beta.1
). Many packages reference others. If your are prompted to version other packages, it is safe to do so.Note: Ensure your version includes the
-beta
text. This is how shipit dictates a beta release. -
Push your branch to Github with the newly created tags using
git push origin <branch> --follow-tags
-
Create a temporary stack in Shipit that points to your deb branch. Set the Branch to your PR/feature branch and update the Environment to something specific to your feature (eg. test-cool-feature)
-
Hit the deploy button on your Publish commit in Shipit to publish your beta release to npm
- Add your release to a repository that uses the package your testing
yarn add --dev @shopify/[email protected]