Repository navigation
Commit bb28deb
authored
ci(website): version the site through changesets, deploy to Cloudflare Workers (#828)
* ci(website): version the site through changesets
website/site joins the pnpm workspace as nostream-website, so the
marketing site is versioned by the same changesets flow as the relay.
Its standalone lockfile folds into the root one.
Verified: changeset version bumps nostream-website only (nostream stays
at its own version), site builds from the merged lockfile.
* ci(website): deploy the static site to Cloudflare Workers
wrangler.jsonc binds the built dist/ as a Workers static-assets site
(html_handling auto-trailing-slash, SPA fallback for unknown paths — the
site has no 404 page and no server code; everything is prerendered).
wrangler joins website/site as a devDependency.
Deploy Website runs after a release PR merges to main (paths cover the
site, its lockfile and every repo file the build reads at build time:
README, docs, deploy runbooks, CHANGELOG, package.json), plus
workflow_dispatch. It builds with SITE_URL from the website-production
environment and runs wrangler deploy with CLOUDFLARE_API_TOKEN from that
environment. ema.tnsor.network rides on a Workers Custom Domain — set it
on the worker at first deploy.
Dry-run verified: wrangler reads the 96 built files, 0.37 KiB worker.
* ci: teach knip the website workspace
The workspace merge made knip scan website/site, where it cannot trace
Astro's build-time imports (astro, sharp, the CSS-imported @fontsource
packages) or wrangler (invoked by CI, not imported), so all five read as
unused dependencies and check:deps failed. Each gets an explicit
ignoreDependencies row in the website/site workspace block, scoped to
that workspace only.
* ci(website): point the deploy at the website environment
Cameri provisioned the environment under the name 'website' with
CLOUDFLARE_API_TOKEN (secret) and CLOUDFLARE_ACCOUNT_ID (var), so the
job references that environment directly. SITE_URL is pinned to
https://ema.tnsor.network — the site is built for one production domain,
no need for a configurable var.
* ci: apply Greptile review fixes to the website deploy
- workflow_dispatch on deploy-website.yml ignores the push-branch filter;
the job now refuses to run off main
- website releases (nostream-website@ tags) no longer build the relay
container image: release.yml gates on the relay's vX.Y.Z tag shape
- pnpm.onlyBuiltDependencies moves from website/site/package.json to
pnpm-workspace.yaml, where pnpm 10 reads it; esbuild postinstalls run
again instead of being silently skipped1 parent 7409006 commit bb28deb
9 files changed
Lines changed: 7473 additions & 6841 deletions
File tree
- .changeset
- .github/workflows
- website/site
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
27 | 46 | | |
0 commit comments