Repository navigation
Conversation
vzaidman
force-pushed
the
vzaidman/website-install-action
branch
from
November 6, 2026 12:38
6188171 to
909bb2e
Compare
vzaidman
force-pushed
the
vzaidman/website-install-action
branch
2 times, most recently
from
November 6, 2026 12:52
b9bdc97 to
7368a3f
Compare
Adds `AGENTS.md` (imported by `CLAUDE.md`), instructions for coding agents working on Metro: - Docs: they are in `docs/`. Read them to understand Metro's intended behavior, update them in the same change when it affects behavior they describe, and flag changes that make them inaccurate when reviewing. - Benchmarks: measure performance-sensitive changes with `scripts/benchmark-patches/benchmark-patches.js`, and offer to benchmark when making or reviewing them. Changelog: [Internal]
The website build checks links between doc pages (`onBrokenLinks`, `onBrokenAnchors`), but it only ran as part of the deploy, when a commit landed on `main`. A PR that broke a link was green and then broke the deploy. Adds `preview-website.yml`, which runs `yarn build` in `website/` on PRs that touch `docs/**` or `website/`. In forks, it also runs on pushed branches and publishes each one as a preview at `https://<owner>.github.io/<repo>/<branch>/`, once the fork owner enables workflows and GitHub Pages from the `gh-pages` branch. "Export to GitHub" pushes to the author's fork by default, so exported diffs get previews too. `WEBSITE_BASE_URL` overrides the website's `baseUrl`. The help page links use `Link`, so they follow it. Changelog: [Internal]
Adds a `website-install` composite action, like `yarn-install`, that sets up Node with the yarn cache for `website/yarn.lock` and installs the website's dependencies. `preview-website.yml` and `deploy-website.yml` use it, so `deploy-website.yml` no longer restores the yarn cache by hand. `preview-website.yml` also runs when the action changes. Changelog: [Internal]
vzaidman
force-pushed
the
vzaidman/website-install-action
branch
from
November 6, 2026 12:57
7368a3f to
ff0297a
Compare
Contributor
Author
|
Combined into #2178. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #2178. Review only the last commit.
Adds a
website-installcomposite action, likeyarn-install, that sets up Node with the yarn cache forwebsite/yarn.lockand installs the website's dependencies.preview-website.ymlanddeploy-website.ymluse it, sodeploy-website.ymlno longer restores the yarn cache by hand.preview-website.ymlalso runs when the action changes.Changelog: [Internal]
Test plan
yarn format-checkpasses, and the action and workflows parse as YAML.