diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 45afc1df3b6..b1fb4e212ea 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 :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 --merge --admin --match-head-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.