Skip to content

Commit

Permalink
Merge pull request #1278 from Shopify/self-server-beta-releases
Browse files Browse the repository at this point in the history
Enable self service dev releases
  • Loading branch information
ismail-syed authored Feb 28, 2020
2 parents 2204f35 + 4b44145 commit ecc0223
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions documentation/guides/release-and-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,19 @@ git push origin master --follow-tags
- Log in to [Shipit](https://shipit.shopify.io/shopify/quilt/production)

- When CI is 🍏 on the commit titled `Publish`, press `Deploy` to update packages on npm.

# Releases for 🎩ing changes?

### Step 1 - Publish a `dev` release for testing

- In your branch, run `yarn run release-dev`. Lerna will launch it's CLI to select a version for the changed packages. Select the `Custom` option and enter a version with an appended `-dev.X` (eg. `0.29.10-my-feature-dev.1`). Many quilt packages reference others. If your are prompted to version other packages, it is safe to do so.
- 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)
![Create Shipit Stack](../images/shipit-stack.png)

- Hit the deploy button on your Publish commit in Shipit to publish your dev release to npm

### Step 2 - Consume the release

- Add your release to a repository that uses the package your testing
- `yarn add --dev @shopify/my-package@0.29.10-my-feature-dev.1`
Binary file added documentation/images/shipit-stack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"test:ci": "yarn _test --maxWorkers=3 --coverage",
"check": "lerna run check",
"release": "lerna publish",
"release-dev": "lerna publish --dist-tag dev",
"clean": "rimraf './packages/*/dist'",
"generate": "plop",
"generate:package": "plop package && yarn plop docs",
Expand Down

0 comments on commit ecc0223

Please sign in to comment.