How a release goes out
One script carries a HAX release from npm to every platform, then a tag sets off the automation.
- 1. Publish packages. lerna publish sends every changed element to npm under @haxtheweb. It is the one step done by hand, because it needs a person to confirm versions. (1. Publish packages, npm, Web components)
- 2. Ubiquity build. yarn run ubiquity: one build of every element into build/, plus wc-registry.json (tag to file) and wc-registry-graph.json (what loads what), so any site can lazy-load any element. (2. Ubiquity build, Web components)
- 3. Agent skills index. PRAW is the source for HAX agent skills. The index is built and snapshotted into the site boilerplate and both deployment roots as .well-known/agent-skills. (3. Agent skills index, PRAW, Agent skills)
- 4. Normalize every project. The same build/, build.js, build-haxcms.js, wc-registry.json and version are copied into HAX11ty, haxcms-php, haxcms-nodejs, haxsite, HAXiam, the Penn State CDN, the waxam mirror and ELMS:LN. (4. Normalize every project, HAX11ty, HAXcms PHP, HAXcms Node.js, HAXiam, Penn State CDN, ELMS:LN)
- 5. Sync themes.json. The theme list from haxcms-elements is copied into both backends' coreConfig, so both offer the same themes. (5. Sync themes.json, Themes, HAXcms PHP, HAXcms Node.js)
- 6. Outline designer contract. Real outline-designer output is recaptured and replayed through both backends' saveOutline in a contract test, so the designer and the backends never drift. (6. Outline designer contract, Outline designer, HAXcms PHP, HAXcms Node.js)
- 7. Node.js is the boilerplate. haxcms-nodejs's site boilerplate and coreConfig are mirrored into haxcms-php, and the CLI gets wc-registry.json to validate tags. (7. Node.js is the boilerplate, HAXcms Node.js, HAXcms PHP, HAX CLI)
- 8. Rebuild the gallery. The component gallery is rebuilt for CDN publishing; pull requests get a Vercel preview of it. (8. Rebuild the gallery, Web components)
- 9. Version and tag everything. Every repo commits, takes the same version with commit-and-tag-version and pushes with its tag. (9. Version and tag everything, GitHub)
- When the tag lands: release notes, checksums, containers, SBOMs and npm. (Release notes and checksums, Container images, Software bill of materials, npm releases, Gallery previews)
- What guards it: nightly builds, backend parity, CodeQL and scorecards. (Nightly build and tests, Backend parity, CodeQL and scorecards)
- The whole release.