hydrogen-release-process
Skill2.1k starsChanged 8 months agoMITView on GitHub
Release process guide for Shopify's Hydrogen framework. Covers the full release flow (standard, back-fix, snapshot), manual vs automatic steps, changelog.json updates, h2 upgrade enablement, and release failure recovery. Use when performing or debugging a Hydrogen release. Also activates when someone mentions "release", "release process", "back-fix", "snapit", "changelog.json", "h2 upgrade enablement", "release failure", "version PR", "release PR", or "hydrogen release".
- Deletes or force-pushes
- Commits and pushes
Trending
Quiet since June.about the whole repository
Who's talking about Shopify/hydrogen
- Shopify/hydrogen-demo-store“Remix to react-router and other dep upgrades”GitHub · Nov 24, 2025 · 8 reactions
- Shopify/hydrogen-v1“CartProvider V2 ”GitHub · Aug 5, 2022 · 6 reactions
- BuilderIO/builder-shopify-hydrogen“Cannot use the builder/react sdk in the new version of shopify-hydrogen using Remix”GitHub · Feb 14, 2023 · 5 reactions
- vitejs/vite“Use ESM for SSR builds”GitHub · May 12, 2022 · 4 reactions
- Shopify/hydrogen-v1“Move cart queries to an API endpoint”GitHub · Apr 5, 2022 · 4 reactions
The biggest 5 of 29 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 29
Talked about on GitHub and Bluesky (29 times).
On GitHub · 28
- Nov 24, 2025Remix to react-router and other dep upgrades — Shopify/hydrogen-demo-store8 reactions · 1 comment
- Aug 5, 2022CartProvider V2 — Shopify/hydrogen-v16 reactions · 15 comments
- Feb 14, 2023Cannot use the builder/react sdk in the new version of shopify-hydrogen using Remix — BuilderIO/builder-shopify-hydrogen5 reactions · 11 comments
- May 12, 2022Use ESM for SSR builds — vitejs/vite4 reactions · 3 comments
- Apr 5, 2022Move cart queries to an API endpoint — Shopify/hydrogen-v14 reactions · 9 comments
23 more on GitHub
- Mar 30, 2022Introduce Link prefetch behavior — Shopify/hydrogen-v14 reactions
- Dec 7, 2021Default preloading queries — Shopify/hydrogen-v14 reactions · 5 comments
- Jun 30, 2023Adds Hydrogen 2.0 (via Remix) Adapter — netlify/remix-compute3 reactions · 16 comments
- Apr 27, 2023createWithCache_unstable not working on Oxygen — sanity-io/hydrogen-sanity-demo3 reactions · 5 comments
- Oct 24, 2022[BUG] Environment variables in `hydrogen.config.ts` don't work with `npm run preview` — Shopify/hydrogen-v13 reactions
- Sep 1, 2022Cloudflare adapter disables known cloudflare worker "compatible" dependencies — solidjs/solid-start3 reactions · 24 comments
- May 19, 2022Consider implementing Link prefetching for mobile — Shopify/hydrogen-v13 reactions · 3 comments
- May 18, 2022Bug [Flight]: Hydration fails when suspended components introduce new client components — react/react3 reactions · 4 comments
- Apr 20, 2022[Hydrogen docs]: Content fixes in source files — Shopify/hydrogen-v13 reactions · 1 comment
- Mar 28, 2022Do not cache GraphQL errors — Shopify/hydrogen-v13 reactions · 2 comments
- Feb 8, 2022Standardize `data` prop across components — Shopify/hydrogen-v13 reactions · 2 comments
- Jan 18, 2022Improvements to API Routing — Shopify/hydrogen-v13 reactions · 2 comments
- Jun 4, 2026chore(deps): bump turbo-stream and @shopify/hydrogen in /packages/tokpulse-hydrogen — Hardonian/TokPulse2 reactions · 5 comments
- Feb 7, 2023[BUG] CartLineQuantityAdjustButton clears lineItem attributes — Shopify/hydrogen-react2 reactions · 5 comments
- Nov 14, 2022Fix preload cache ballooning — Shopify/hydrogen-v12 reactions · 5 comments
- Aug 17, 2022Expose the private token and storefrontId within Hydrogen config — Shopify/hydrogen-v12 reactions · 7 comments
- Jul 14, 2022Improve CSS support in server components — Shopify/hydrogen-v12 reactions · 8 comments
- Jul 12, 2022HMR in server components — Shopify/hydrogen-v12 reactions · 1 comment
- Jul 11, 2022Add assets proxy in Oxygen — Shopify/hydrogen-v12 reactions · 1 comment
- Jun 14, 2022Upgrade to React v18.2 — Shopify/hydrogen-v12 reactions · 2 comments
- May 23, 2022Replace `graphql-tag` with internal `gql` utility — Shopify/hydrogen-v12 reactions · 4 comments
- Mar 10, 2022Support mutations & refreshing RSC responses from API endpoints — Shopify/hydrogen-v12 reactions · 2 comments
- Dec 31, 2021React Server Components — vikejs/vike2 reactions · 7 comments
On Bluesky · 1
- Sep 13, 2025If I need to build a storefront, I'd probably check out Medusa [1] or Shopify Hydrogen [2]. Otherwise, probably Elixir/Phoenix and LiveView… — @nezteb.net3 likes and reposts
In this repository9 other files it gives its agents.
- templates/skeleton/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- cookbook/CLAUDE.mdCLAUDE.md
- e2e/CLAUDE.mdCLAUDE.md
- templates/skeleton/CLAUDE.mdCLAUDE.md
- templates/skeleton/.cursor/rules/hydrogen-react-router.mdcCursor rule
- e2e-test-writingSkill
- hydrogen-dev-workflowSkill
- hydrogen-versioningSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
29 rules. About 0 are common, 17 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
If changes affect packages/*/src/ or packages/*/package.json, a changeset is required
- Very specific: line 20
Run pnpm run changeset add to create a changeset file (MANUAL)
- Very specific: line 26
Every push to main (except release commits) triggers the next-release job in release.yml
- Very specific: line 28
ALL packages are published with next tag
- Distinctive: line 33
If changesets are found, creates OR updates an open CI release PR
- Distinctive: line 44
Only packages with changesets get new versions (AUTOMATIC)
- Very specific: line 50
After npm publication, docs/changelog.json must be updated (MANUAL)
- Very specific: line 54
Update docs/changelog.json with release information (MANUAL)
- Distinctive: line 56
Commit and push to main branch (MANUAL)
- Distinctive: line 68
Key Point: Not every merged PR triggers a release!
- Distinctive: line 70
When you merge a PR with a changeset, it does NOT immediately release to npm
- Distinctive: line 71
Instead, your changeset is added to the open CI release PR
- Very specific: line 111
Create changesets: Run pnpm run changeset add for any PR with code changes
- Very specific: line 112
Skeleton changes: MUST include all three packages in changeset: skeleton, @shopify/cli-hydrogen, AND @shopify/create-hydrogen — see …
- Very specific: line 118
Update changelog.json: After npm release, manually update this file to enable h2 upgrade command
- Distinctive: line 119
Monitor releases: Verify packages published correctly and Slack notifications sent
- Very specific: line 122
When cli-hydrogen has updates, create a PR in the Shopify CLI repo and coordinate with Shopify CLI team to request patch release
- Distinctive: line 134
All packages published regardless of changesets
- Distinctive: line 143
Only packages with changesets get new versions
- Distinctive: line 183
Create the back-fix branch:
- Distinctive: line 184
ALWAYS create a NEW branch from the latest patch/minor of the target major (even if an existing branch by that name already exists!!):
- Very specific: line 188
Add your back-fix branch to the on.push.branches array in .github/workflows/release.yml.
- Distinctive: line 189
Commit and push (FORCE push your version if the branch already exists on remote!!):
- Distinctive: line 198
Do the code changes that you want present in the back-fixed version:
- Distinctive: line 200
Create a new branch for your code changes, that is based on the back-fix branch
- Very specific: line 216
If the issue appears to be a Shopify/npm configuration issue (NOT a Hydrogen-specific issue), get help in #help-eng-infrastructure (Slack …
- Distinctive: line 217
After fixing the underlying issue, revert the release PR to re-trigger a release attempt.
- Distinctive: line 218
If the revert button does not work (common for back-fix branches):
- Distinctive: line 220
Check out the branch locally
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Hydrogen Release Process
Hydrogen uses an automated release system built on Changesets, GitHub Actions (release.yml), and npm workspaces. For changeset rules that apply to every PR, see CLAUDE.md. For versioning semantics (CalVer, API versions), see the hydrogen-versioning skill.
Release Flow: From PR to Production
- Developer creates PR with changes
- If changes affect
packages/*/src/**orpackages/*/package.json, a changeset is required - Run
pnpm run changeset addto create a changeset file (MANUAL) - Changeset specifies which packages are affected and version bump type (patch/minor/major)
- If changes affect
On merge to main, TWO parallel processes occur:
a) Next Release (immediate) (AUTOMATIC)
- Every push to main (except release commits) triggers the
next-releasejob inrelease.yml - Creates snapshot version:
0.0.0-next-{SHA}-{timestamp} - ALL packages are published with
nexttag - Available immediately for testing latest changes
b) Version PR Creation (if changesets exist) (AUTOMATIC)
- The
releasejob inrelease.ymlruns - If changesets are found, creates OR updates an open CI release PR
- PR title:
[ci] release {latestVersion}(wherelatestVersionis the computed next version — see below) - Important: This PR accumulates ALL changesets from merged PRs
- Multiple PRs can be merged before a release (e.g., 10 PRs = 10 changesets in one Version PR)
- The Version PR automatically updates as new changesets are merged
- Every push to main (except release commits) triggers the
- Production Release — Batched (manual step)
- Releases are batched: Maintainers decide when to release (could be after 1 PR or 10 PRs)
- The Version PR accumulates all pending changesets since last release
- Maintainer reviews accumulated changes and merges the Version PR when ready (MANUAL)
- On merge,
release.ymlpublishes to npm withlatesttag (AUTOMATIC) - Only packages with changesets get new versions (AUTOMATIC)
- Internal dependencies updated with patch versions (AUTOMATIC)
- Post-release actions:
- Compiles templates to
distbranch (AUTOMATIC)
- Compiles templates to
Post-Release: Enabling Upgrades (manual step)
- After npm publication,
docs/changelog.jsonmust be updated (MANUAL) - This enables the
h2 upgradecommand to detect the new version - Without this step, developers cannot upgrade using the CLI
- Process:
- Update
docs/changelog.jsonwith release information (MANUAL) - Include version, dependencies, features, fixes, and upgrade steps (MANUAL)
- Commit and push to main branch (MANUAL)
- Changes are served via https://hydrogen.shopify.dev/changelog.json (AUTOMATIC)
- Update
How
h2 upgradeworks:- Fetches changelog.json from hydrogen.shopify.dev (proxies to the raw content of this file on the
mainbranch in the Hydrogen repo) - Compares user's current version against available versions
- Shows features, fixes, and breaking changes for upgrade path
- Generates local upgrade instructions file in
.hydrogen/directory - Updates package.json dependencies based on changelog specifications
- After npm publication,
Understanding Batched Releases
Key Point: Not every merged PR triggers a release!
- When you merge a PR with a changeset, it does NOT immediately release to npm
- Instead, your changeset is added to the open CI release PR
- This PR accumulates changesets from ALL merged PRs since the last release
- Maintainers decide when to merge this PR to trigger an actual release
- This allows batching multiple features/fixes into a single release
Example Timeline:
- Monday: 3 PRs merged with changesets → Version PR has 3 changesets
- Tuesday: 2 more PRs merged → Version PR now has 5 changesets
- Wednesday: 4 more PRs merged → Version PR now has 9 changesets
- Thursday: Maintainer merges Version PR → All 9 changes released together
Multi-Package Releases
- Each package versions independently (no fixed/linked packages in changesets config)
- Single changeset can specify multiple packages
- Example: PR changes both
@shopify/hydrogenand@shopify/cli-hydrogen- Both packages listed in changeset
- Each gets appropriate version bump
- Published together when Version PR merged
Other Release Types
Snapshot Testing (/snapit)
- Comment
/snapiton any PR - Creates snapshot version for testing
- Publishes specific packages for PR validation
Back-fix Releases
- Push to calver branches (e.g.,
2025-01) triggers thebackfix-releasejob inrelease.yml - Publishes with branch name as npm tag
- Used for patching previous versions
- See the detailed step-by-step below
Manual vs Automatic Steps
Manual Steps (Human Intervention Required)
- Developer Actions
- Create changesets: Run
pnpm run changeset addfor any PR with code changes - Skeleton changes: MUST include all three packages in changeset:
skeleton,@shopify/cli-hydrogen, AND@shopify/create-hydrogen— see changeset rules in CLAUDE.md - Write PR descriptions: Include clear explanations of changes
- Request snapshot builds: Comment
/snapiton PR to test changes
- Create changesets: Run
- Maintainer Actions — Regular Releases
- Merge Version PR: Review and merge the auto-generated open CI release PR to trigger npm publication
- Update changelog.json: After npm release, manually update this file to enable
h2 upgradecommand - Monitor releases: Verify packages published correctly and Slack notifications sent
- Maintainer Actions — CLI Releases
- When cli-hydrogen has updates, create a PR in the Shopify CLI repo and coordinate with Shopify CLI team to request patch release
- Post-release actions: Whether to update skeleton's
@shopify/cliand trigger a second cli-hydrogen release depends on the nature of the cli-hydrogen changes — see the circular dependency section in CLAUDE.md
- Maintainer Actions — Major Version Changes
latestBranchdetection:latestBranchis computed dynamically bycalver-shared.js+get-calver-version-branch.jsinrelease.yml. No manual editing oflatestBranchis needed for standard releases.- Configure back-fix branches: To enable back-fix releases for a previous CalVer branch, add it to the
on.push.branchesarray in.github/workflows/release.yml. Never add the current CalVer branch.
Automatic Steps (CI/CD Handles)
- On Every Push to Main
- Next release publishes immediately with tag
next - Version:
0.0.0-next-{SHA}-{timestamp} - All packages published regardless of changesets
- Next release publishes immediately with tag
- When Changesets Exist on Main
- Version PR automatically created
- Title:
[ci] release {latestVersion} - Contains version bumps and CHANGELOG updates
- When Version PR is Merged
- Packages publish to npm with
latesttag - Only packages with changesets get new versions
- Templates compile and push to
distbranch - Slack notification sent (if Hydrogen package included)
- GitHub releases created with changelogs
- Packages publish to npm with
- When
/snapitis Commentedsnapit.ymlworkflow runs- Snapshot version created for PR
- Packages published with unique tag
- PR comment updated with installation instructions
- On Push to Calver Branches
backfix-releasejob inrelease.ymlruns- Back-fix version PR created
- Publishes with branch name as npm tag when merged
Standard Release (from main)
- PRs with changesets are merged to main
- The changesets automation opens or updates a release PR
- IMPORTANT: Validate BOTH the title AND the description of the release PR. Bugs can happen where the title may show the correct version (e.g.,
2025.7.2— a patch bump) but the description incorrectly says a different version (e.g.,2025.10.0). Do not trust one without checking the other. - Approve and merge the release PR — this automatically publishes the packages to npm
- Monitor the GitHub Actions that run after merge to confirm they succeed. Example release PR: #3468
- Double check that you now see the new release(s) on npm
It is expected that for ~1 hr after doing a new release, scaffolding new Hydrogen projects may continue to be scaffolded using the stale version due to npm caching.
Back-Fix Releases (detailed)
Sometimes you need to release a patch/minor for a version that is not the latest major, or main already has unreleased code for a future version. In these cases, use a back-fix branch.
If this is your first back-fix, pair with an experienced team member. The process involves branch naming conventions and force-push scenarios that can silently break things if done wrong.
[!CAUTION] Branch naming: The back-fix branch must be named to match the major version, e.g.,
2024-10. Do NOT use arbitrary branch names¹. The dev docs automation for updating API documentation depends on this exact naming pattern. If the branch name is wrong, docs will not update and there will be no error — it fails silently.
¹This dev docs automation (at time of writing - Mar. 17, 2026) currently only applies to @shopify/hydrogen and @shopify/hydrogen-react. It is extremely rare that you would want to back-fix a different package in this monorepo, though you could, and in that case the specific branch name can be whatever you want, you just need to make sure that you have the SAME branch name as what you put in .github/workflows/release.yml. Also note that in this situation (after back-fixing a non @shopify/hydrogen or @shopify/hydrogen-react dependency in this repo), you probably don't need to release a new Hydrogen version, and instead you can just add a new entry to docs/changelog.json with the new back-fixed version of the dependency. Example: we released a new version of the Shopify CLI that we wanted people to upgrade to, so we just added a second entry in docs/changelog.json for Hydrogen version 2025.4.1, as it would be unnecessary to do another release of Hydrogen with just the CLI bump.
Step-by-step workflow:
Create the back-fix branch:
- ALWAYS create a NEW branch from the latest patch/minor of the target major (even if an existing branch by that name already exists!!):
git checkout -b 2024-10 @shopify/hydrogen@2024.10.1 - Add your back-fix branch to the
on.push.branchesarray in.github/workflows/release.yml. This change is only made on back-fix branches, never on main. - Commit and push (FORCE push your version if the branch already exists on remote!!):
git push origin 2024-10
[!WARNING] Why should I always create a NEW back-fix branch and (force) push, even if one already exists on remote?
- While we can update
.github/workflows/release.ymlto automatically create a back-fix branch for each release upon release, we've decided not to. Sometimes changes can accidentally get pushed to or merged into the back-fix branch but not released, so if you were to then add onto it you also have some arbitrary changes present that shouldn't be there. Also, even if a back-fix branch is automatically created after each Hydrogen release, others can still force push to it or make changes to it such that you cannot and should not trust the existing back-fix branch (if it exists) as the source of truth. The existing back-fix branch could theoretically be named "2025-10" but actually contain code from Hydrogen version "2025-01" if someone pushed faulty code to it in the past.
Do the code changes that you want present in the back-fixed version:
- Create a new branch for your code changes, that is based on the back-fix branch
git checkout -b 2024-10-my-changes 2024-10 - Make your code changes and create a changeset
- Push your changes to remote, and then create a PR on your
2024-10-my-changesbranch, with the base branch being2024-10(obviously adjust specific branch names to your specific case) - Get reviews from team members on your PR!
- Once your PR is approved and merged, a GitHub Action will automatically create a back-fix release PR (example: #3360)
- Get reviews from team members on the release PR!
- Merge the release PR and monitor GitHub Actions for release success
Release Failure Recovery
If this is your first release failure, pair with an experienced team member before attempting recovery. DO NOT JUST YOLO THIS WITH LLMs!!!!!
- Investigate the error message from the failed GitHub Action
- If the issue appears to be a Shopify/npm configuration issue (NOT a Hydrogen-specific issue), get help in
#help-eng-infrastructure(Slack ID:C01MXHNTT4Z) - After fixing the underlying issue, revert the release PR to re-trigger a release attempt. Use the "Revert" button on the PR's GitHub page.
- If the revert button does not work (common for back-fix branches):
- First, save the current branch state:
git branch backup-2024-10(so you can restore if needed) - Check out the branch locally
- Drop the release PR commit(s) via rebase
- Force push
- First, save the current branch state:
WARNING: The force-push recovery path requires advanced git confidence. If you are not extremely comfortable with git rebase and git push --force, do not attempt this alone. Verify you are not deleting other commits before force pushing.
Related Skills
CLAUDE.md— Changeset rules (apply to every PR), skeleton/CLI bundling chain, circular dependencyhydrogen-versioning— CalVer formats, version support policies, release cadencehydrogen-dev-workflow— Day-to-day development workflow, testing, recipes, PR conventions
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

