Repository navigation
ci: release from a workflow, with notes from Conventional Commits - #21
Merged
Merged
Conversation
kalaspuff
pushed a commit
to hyperstructure/design
that referenced
this pull request
Oct 17, 2026
The same release structure as hyperstructure/fctl#21, for the design package. - **Release workflow.** Actions → Release → Run workflow (`bump`: auto, patch, minor or major; `dry_run`). It checks and builds `main`, then `scripts/release.mjs` picks the version from the Conventional Commits since the last tag: a breaking change bumps the minor version before 1.0, a `feat` the minor, anything else the patch. It writes `package.json`, `package-lock.json` and `CHANGELOG.md`, pushes the `chore(release): vX.Y.Z` commit and tag atomically, and creates the GitHub release with the notes. - **Pull request titles** must be Conventional Commits, since they become the squash-merged commits. A **Conventional Commits** CI job checks them with `scripts/lint-commit.mjs`, and checks again on title edits. - **Shared rules.** `scripts/commits.mjs` holds the parsing, linting, versioning and notes rules, the same as fctl's `xtask/src/release.rs`. `npm test` covers them and runs in CI. - **Agent guidance.** `.claude/skills/commit` and `.claude/skills/release` are new; the release skill includes moving fctl and fctl-site to the new tag. AGENTS.md links to both. - **Changelog.** `CHANGELOG.md` is backfilled for 0.1.0–0.1.2. Repository settings changed alongside: squash merges now use the pull request title and description, as in fctl. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PQMz6M4XFEb1wkZKjtJgEK Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>
kalaspuff
pushed a commit
to hyperstructure/fctl-site
that referenced
this pull request
Oct 17, 2026
fctl.sh now follows the same commit conventions as hyperstructure/fctl#21 and hyperstructure/design#1. - **Title check.** Pull request titles must be Conventional Commits, because they become the squash-merged commits on `main`, which deploys fctl.sh. A **Conventional Commits** CI job checks them with `scripts/lint-commit.mjs`, and checks again on title edits without rebuilding the site. - **Shared rules.** `scripts/commits.mjs` is a copy of design's, with the same tests. CI now runs them (`npm test`). - **Agent guidance.** `.claude/skills/commit` covers titles, scopes, the description and the flow. AGENTS.md says pull requests only, and a person merges them. The one exception is fctl's CI pinning `fctl-docs.ref`; fctl#21 changes those pin commits to `docs: pin hyperstructure/fctl@…`. fctl-site has no releases (it deploys from `main`), so there's no release workflow. Squash merges now use the pull request title and description. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PQMz6M4XFEb1wkZKjtJgEK Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>
This was referenced Oct 17, 2026
Closed
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.
Releases now come from a button, and their notes write themselves from Conventional Commits.
Releasing
Actions → Release → Run workflow (or
gh workflow run release.yml --ref main -f bump=auto):cargo xtask releasepicks the next version from the commits since the last tag. A breaking change bumps the minor version before 1.0 (the major one after), afeatthe minor version, anything else the patch;bumpoverrides it. It writes the version intoCargo.tomlandCargo.lock, adds the notes toCHANGELOG.md, commitschore(release): vX.Y.Z, tags it and pushes both tomainatomically.cargo xtask notes <tag>). It then starts CI onmain, which redeploys app.fctl.sh.dry_runonly shows the version and notes, in the run summary.tagrebuilds an existing release tag, which must be onmain. Tags pushed by hand no longer publish anything. Starting the workflow needs write access to Actions, which fctl session tokens don't have. Before this, any agent withcontents: writecould push a tag and publish.Conventional Commits
cargo xtask lint-commit. When the title is edited, only this workflow reruns. On pushes tomainit only warns. It's separate from CI on purpose: an edit that reran CI would skip the code checks, and GitHub counts a skipped check as passing.CHANGELOG.mdis backfilled for 0.1.0–0.1.2 from their commits.For agents
.claude/skills/commit/SKILL.md: types, scopes, breaking changes, the description, branches, and the flow. Agents open pull requests and a person merges them..claude/skills/release/SKILL.md: preview, release, what to check afterwards, and what to do when it fails. Only for those with release access.How I verified it
cargo xtask notes v0.1.2reproduces 0.1.2's commits.cargo xtask release --dry-runonmainproposes 0.1.3.cargo xtask releasein a scratch clone produced the rightCargo.toml,Cargo.lock,CHANGELOG.md, release commit and tag.cargo xtask checkpasses.Branch protection waits until the repositories are public (GitHub Free has no branch rules for private repositories). That gets its own issue.