Check, build, publish
Shipping — reading a check report, what the artifact holds, and the publisher key that sends it to HomePages.
Three commands, in that order, and the third one needs something the first two do not: a publisher key. Everything up to the key works on any machine.
Goal
A green report, an artifact on disk, and — with a key — a published template version and a review link you can hand to somebody.
Steps
Read a report. concrete check grades the workspace against every
requirement the platform accepts a template on:
npm run check✓ workspace
✓ typecheck
✓ lint
✓ composition
✓ relations
✓ stylesheet
✓ logic
✓ fixtures
✓ sections
✓ contracts
✓ render
✓ bundles
details renderer 6.4 KB gzip
hero renderer 8.1 KB gzip
✓ dependencies
concrete check passed: 13 stages.Read the stages as a pipeline, because that is what they are: the workspace resolves, the code compiles and lints, your pages are run under a probe to derive the composition, what one section reads off another is graded, the stylesheet and the logic bundles build, the fixtures resolve, the sections' schemas and fill specs are validated, the contract assertions run over them, every section is rendered over every fixture, the bundles are weighed, and your dependencies are inspected.
Every finding carries a rule id, and every id resolves at /rules/<id> — the
page that says what the rule protects and how to fix it. A red stage does not
stop the run, so one concrete check tells you everything that is wrong. The
thresholds are platform acceptance criteria rather than preferences: no flag and
no config file raises one.
--json prints one machine-readable report on stdout instead, with every notice
on stderr, which is what a CI step or an agent should read.
Build. concrete build writes the template's built files and grades nothing.
Grading is concrete check's job, and check runs this same build before it grades:
npm run buildconcrete build: wrote …/my-template/.concrete/build — template my-template 9d4f46b2fb2a, 2 sections, 2 built and 0 unchanged.That hex string is the template's content hash, and it is the version's identity on the platform. The build is deterministic: the same tree builds to the same hash, on your machine and on anyone else's. It is also incremental: after an edit to one section, the next build builds that section again, and any section importing the file you changed, and keeps the rest.
.concrete/build/
build.json what was built: every file's hash, the content hashes, which sections this run built
template/ the composition and the stylesheet
sections/my-template/hero/ per section: schema, fill spec, logic, renderer, read graph
assets/ every image the template references, at every width
static/ the framework's own runtime and base stylesheet, hashed.concrete/ is gitignored by the scaffold. --out writes somewhere else.
Get a key. Publishing is authenticated by CONCRETE_TOKEN, a publisher key
a HomePages admin issues you. Put it in the workspace's .env, which the
scaffold gitignored for exactly this reason, or in your environment.
There is no environment flag on concrete publish, because the environment is
in the key: the prefix names it, and the command goes where the key points. A
key for one environment is refused by another before anything is uploaded.
Publishing and environments has what a
key carries and what the platform lets it declare.
Without a key, this is where the track ends, and it ends complete: a green
concrete check is everything publishing needs. Running
concrete publish without one says so and does nothing:
concrete publish: CONCRETE_TOKEN is not set; set it in the environment or in this workspace's .env to the publisher key a HomePages admin issued you.Publish. The command builds and checks again, refusing on red, then assembles the artifact (the built files, your fixtures, the hosted playground and, for an image or document template, its captures), uploads it, and polls until the publication settles, printing one line per stage. With a key, a first publish of this template reads like this:
npx concrete publishtarget production · key cpt_prod_…a41c · https://api.homepages.io
build built 9d4f46b2fb2a · 2 sections · check passed
upload my-template 9d4f46b2fb2a · 2.4 MB · publisher "Studio North"
verify ok
write template 9d4f46b2fb2a is new · sections: 2 new, 0 changed, 0 unchanged
adopt no deliverable to move · 0 deliverables checked
review https://play.homepages.io/my-template/…/The verify stage is the platform's own pass over what it received: the manifest parses,
every content hash recomputes over the bytes that actually arrived, the framework
version is at or above the floor, scope is inside what the key permits, the
contract assertions hold, and every renderer imports and renders once. What it
trusts is that concrete check ran — which is why concrete publish runs it on
every publish and refuses on red.
The adopt stage is what happens after the write: the platform republishes the template's live deliverables that were in sync, so a fix reaches the sites already out there rather than only the next one. On a first publish there are none.
--dry-run goes through upload and verification and stops before the write.
Open the review link. A published version gets a hosted playground on its
own URL — the same playground concrete dev gave you, over the fixtures your
artifact carries, on a link that needs no workspace and no account. It is how you
hand a template to somebody for review.
Publishing the same tree again changes nothing and says so (already current).
An environment holds one build of a template, and every publish replaces it, so
rolling back is publishing the older tree. There is no rollback verb, because a
content-addressed version does not need one.
What you learned
- What
concrete checkis. The platform's acceptance criteria run locally, thirteen stages, every finding carrying the id of the rule that explains it — andconcrete publishrefuses without it. - What the artifact is. A deterministic, content-addressed bundle of your template, its sections, its fixtures and its assets — the hash is the version.
- What the key decides. The environment and the audience, not a flag — publishing and environments.
- Why a version is a hash. Republishing is a no-op and rolling back is going forward to an older tree — publishing and environments.
- What moves you across a release. Semver over a toolchain the package owns, with a codemod for every break — the workspace and versioning.
Next
You have the whole loop. Three places to go from here:
Concepts
The thirteen ideas the track instantiated, each explained once and in full. Read these next if anything above felt like a rule rather than a reason.
Guides
Task-shaped recipes from the starter you now have — every slot kind, fills, islands, lead forms, fixtures, themes, fonts, rendered formats.
Reference
Exact semantics, by authoring surface: every builder, primitive, command and rule.
If a coding agent is working in this workspace with you, point it at
the agent brief — the scaffolded AGENTS.md already does.
