Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Before removing or incompatibly changing a stable interface:

- This repository is published from Shopify's internal monorepo. The mirror carries each upstream merge to GitHub: it opens or refreshes a pull request here automatically, and merges it once `main`'s required checks pass. GitHub `main` publishes only nightlies, never a release: on each push, its release workflow only checks that every version on `main` is on npm.
- Minor and patch releases ship from a `stable/X.Y` branch. Only Dev Experience members can create one: for a minor, a Dev Experience member creates it before the release, at a green `main` commit, with `git push origin <commit>:refs/heads/stable/X.Y`. That line's patches go to the same branch.
- Most fixes whose changesets are all `patch` are backported to the newest `stable/X.Y` branch and released as a patch soon after they merge, so use `patch` only for bug fixes, and add the changeset in the pull request that fixes the bug.
- `release.yml` pushes each version bump to `changeset-release/stable/X.Y`. GitHub Actions can't open pull requests here, so the release owner opens "Version Packages - stable/X.Y" from that branch, closes and reopens it to run its checks, and QAs its head commit with `release-qa-package.yml`.
- The release owner checks that `stable/X.Y` hasn't moved since the bump, then merges the pull request pinned to the QA'd commit: `gh pr merge <number> --merge --admin --match-head-commit <commit>`. Use a merge commit (`--merge`): a squash merge publishes nothing. `release.yml` then publishes from `stable/X.Y` only the versions that the merge changed. After the release, the version bump is applied upstream, and the mirror carries it to `main`.
- Never merge "Version Packages - main" on GitHub. It would put commits on GitHub `main` that the mirror didn't make, and the mirror would refuse every later publish.
Expand Down
Loading