Repository navigation
ci(release): release features and fixes when they merge - #9
Merged
kalaspuff merged 3 commits intoOct 18, 2026
Merged
Conversation
scripts/commits.mjs holds the Conventional Commit rules that hyperstructure/fctl-site copies (its AGENTS.md says to keep the two in step), and #8 added release.mjs's own options to it. release.mjs now exports releaseOptions() and releases only when it runs as a script, as icons.mjs does; scripts/release.test.mjs tests it. commits.mjs and commits.test.mjs are the same as fctl-site's copies again.
The Release workflow also runs after every push to main, and passes --if-due: scripts/release.mjs releases only when the commits since the last tag include a feat, fix, perf, revert or breaking change (releaseDue()); other changes wait for the next release. Run by hand, it releases whatever is there, as before. It checks out the branch as it is when the run starts, so a run that waited for another one sees that one's release. A merge that lands while a run releases makes the push fail; the run then leaves the release to the newer merge's run instead of failing.
README.md's release section still said to bump the version and push a tag by hand, which the Release workflow has done since #1. It, AGENTS.md and the release, commit and pull-requests skills now say which merges release, how to release the other changes by hand, and how to find the release a merge made.
kalaspuff
deleted the
fctl/36-look-into-https-github-com-hyperstructur
branch
October 18, 2026 14:10
This was referenced Oct 18, 2026
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.
The Release workflow now also runs after every merge to
main, and releases when the commits since the last tag include afeat,fix,perf,revertor breaking change. Other changes (docs,refactor,test,build,ci,chore) wait for the next release. Running it by hand works as before: it releases whatever is new, with any bump, or does a dry run.This automates what has been done by hand so far: each feature was released by hand within minutes of merging (#4 → v0.2.0, #5 → v0.3.0, #6 and #8 → v0.4.0), while #1–#3 (
ci,ci,docs) waited and went out with v0.2.0. It is also semantic-release's default rule. Consumers pin exact tags, so a release changes nothing for fctl or fctl.sh until they move their pin.How
scripts/release.mjs --if-due: releases only whenreleaseDue()says the changes call for it. Otherwise it printsNo release: no feat, fix, perf, revert or breaking change since vX.Y.Z., adds that to the job summary, and exits 0. The workflow passes it for merges (pushtomain), not for runs by hand.mainas it is when the run starts, not the commit that started it, so a run that waited behind another one sees that one's release and finds nothing to do. Runs are already queued one at a time (concurrency: release). If a merge lands while a run is releasing, the atomic push of the commit and tag is rejected. A run after a merge then leaves the release to the newer merge's run (a notice, exit 0) instead of failing. Any other rejected push still fails.releaseOptions()moves fromscripts/commits.mjstoscripts/release.mjs, which exports it withreleaseDue()and releases only when run as a script, asicons.mjsdoes. hyperstructure/fctl-site copiescommits.mjsand its test and is told to keep them in step. fix(release): follow the commits when --bump is not given #8 added a function there that only this script uses, so the copies had drifted. Both files are now the same as fctl-site's again, and the tests are inscripts/release.test.mjs. The check for being run as a script compares real paths, because through a symlinkargv[1]andimport.meta.urldiffer and a release script must not silently do nothing.release,commitandpull-requestsskills now say which merges release, how to release the rest by hand, and how to find the release a merge made (gh run list --workflow release.yml --commit MERGE_SHA, thengit tag --contains). The commit skill's type table says when each type is released.Merging this releases nothing: since v0.4.0 there are only this pull request's
refactor,cianddocscommits.fctl's and fctl-site's AGENTS.md say to change design, "tag a release", then bump the tag. That stays true: a merge now makes the tag.
Verification
npm run check,npm test(8 tests: "release options", and "a merge releases features, fixes, reverts and breaking changes") andnpm run build.node scripts/release.mjsstill runs by relative path, absolute path and through a symlinked directory, and importing it in the tests releases nothing.ghthat records its arguments:featmergesgh release create v0.5.0 … --notes-file …docsmergefixmerges, and afeatlands during its rundocs,fixandfeattogethernothing to release since v0.6.0, exit 1 (as before)docsbash -n.gh workflow run release.yml --repo hyperstructure/design --ref fctl/36-look-into-https-github-com-hyperstructur -f dry_run=true. The merge path first runs when this merges, and should end with "No release".Session: https://app.fctl.sh/s/ses_01M57KT5CM8S7DMP21YJMN6JCK