Repository navigation
release: chant's own releases on chant release cut and publish, unsigned (#4040) - #4209
Merged
Merged
Conversation
This was referenced Oct 21, 2026
lex00
force-pushed
the
release/4040-workstation
branch
from
October 21, 2026 15:51
3e0f4a7 to
fb76531
Compare
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.
#4040: chant's own releases run on the workstation release command. Nothing is signed: no
--sign, no key and noallowed_signersentry. Signing is opt-in since #4174.Merge after 0.124.34 is published. That release goes through
just release-legacy, the old recipe under a new name.just release [major|minor|patch] [<commit>] [--dry-run]picks the newest green commit on main (stillscripts/release-preflight.sh) and runschant release cut <version> --at <commit> --yesfromrelease/. No version-bump commit is made. The version is one past the highest found in anypackage.jsonat the commit or in achant-v*orrelease/npm/*tag, becausepackage.jsonno longer moves with a release. The cut pusheschant/lifecycle, and the recipe pushesrelease/npm/<version>(the cut never pushes it,release-workstation.ts:183). It also tags the reference workspace on a minor or major release.--dry-runruns the cut without--yes.release/is a new workspace member,npm(kindchant). Itschant.config.tsdeclares one environment andrelease.publish: one npm target listing 24 tarballs in.release/packs/, core first, inpublish-packages.sh's dependency layers.packages.component.tsdeploys nothing; a cut needs a component to compile.scripts/release-pack.sh <version>sets every package to the version, with@intentius/*ranges at^<version>(release_apply_version, the oldapply_bump). It packs withDRY_RUN=1 PACK_ALL=1 publish-packages.shand copies each tarball to.release/packs/<dir>.tgz(ignored by git). Then it restores thepackage.jsonfiles and the lockfile, sincerelease publishrefuses a changed tree (release-publish.ts:421). A publish never builds (publish-targets.ts:59), so CI packs before it publishes.stage: false, which publishes each package straight tolatest(or the publish's tag) with nonextstage and nonpm dist-tagmove. chant's packages need it: over trusted publishing, a dist-tag move needs "Allow npm dist-tag" on each package's record, and Trusted publishing: allow npm dist-tag on all 23 package records, and audit it #3904 closed that as won't-do. The default is unchanged.publish.ymladdsrelease/npm/*to its tags and arelease-publishjob. The job needsaudit, runsnpm ciandrelease-pack.sh, thenchant release publish <version> --yesfromrelease/, withid-token: writeandcontents: writefor the publish record. The legacypublishanduntagjobs skiprelease/tags.scripts/release-preflight.sh,scripts/publish-packages.shandjust release-legacystay until two releases have gone through the new path.Docs: the release section of
lexicon-authoring/ci-integration, step 7 ofonboarding-skill(a new lexicon adds its line torelease/chant.config.ts), thestagerow inreference/publish-targets, and the sentence incli/cithat tied #4040 to signing is removed.Dry run, in a scratch clone of this branch with a local bare origin and a local
ci/greentag (CHANT_RELEASE_SKIP_PREFLIGHT=1, because the scratch origin has no CI):The origin's refs were unchanged afterwards.
release-pack.sh 0.124.34in this worktree packed all 24 packages in about 2 minutes. Every tarball was at 0.124.34 with^0.124.34ranges (for example helm depends on@intentius/chant-lexicon-k8s ^0.124.34), and the tree was clean after. A cut against the scratch origin, followed bychant release publish 0.124.34without--yes, listed all 24 packages todist-tag latest.Tests:
publish-targets.test.tshas a newstage: falsecase, andscripts/release-member.test.ts(new) checks that the list covers every publishable package once, core first, each after its workspace dependencies. Allscripts/tests and the publish and release-publish suites pass (268). The docs prose and citation lints pass.Follow-up commit 3e0f4a7:
tokenEnv. When a package's publish fails to authenticate (ENEEDAUTH,E401), it publishes again with that variable's token from a temporary npm user config. If the registry then refuses the attestation, it publishes once more without--provenance. This ispublish-packages.sh's per-package fallback (publish_one).release/chant.config.tssetstokenEnv: "NPM_TOKEN", andrelease-publishpasses the secret. Packages whose record works never use the token.just release-lexiconsets its floor withrelease_lexicon_floor(scripts/release-lib.sh): the highest ofpackage.jsonat the commit and on main, thelexicon-<name>-v*tags, therelease/npm/*tags andnpm view <pkg> version. A package npm has never seen (E404) adds nothing to the floor. Any othernpm viewfailure refuses rather than guess. A dry run ofjust release-lexicon aws patch --dry-runagainst the real remote printed0.124.33 → 0.124.34, one past npm.tokenEnvcases inpublish-targets.test.ts: the retry, the second retry without provenance, the token never printed, and no retry when the variable is unset or the failure isn't authentication. A newscripts/release-lexicon-floor.test.tscovers npm highest, a release tag highest, E404 and a failed lookup. The publish unit suites (33), the publish-targets e2e (2) and the release script tests (37) pass. Two unit tests went over the 5-second budget under load and pass with the budget off.The first real publish over this path is what's left to watch.