Skip to content

chore: sync package-lock with the 0.20.0 release bump - #1094

Merged
lex00 merged 1 commit into
mainfrom
chore/lockfile-0.20.0
Jul 27, 2026
Merged

lex00 merged 1 commit into
mainfrom
chore/lockfile-0.20.0

Conversation

@lex00

@lex00 lex00 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

just release edits every workspace package.json (version + peerDependency ranges) but never runs npm install, so the committed lockfile keeps the previous versions — after chant-v0.20.0, all 12 workspace entries still said 0.19.1. This PR is the regenerated lockfile only (25 lines, version fields).

Worth considering separately: adding npm install --package-lock-only && git add package-lock.json to the release recipe so this can't drift again.

🤖 Generated with Claude Code

`just release` bumps every package.json but never regenerates the
lockfile, so main's lockfile still recorded 0.19.1 for all 12 workspace
packages after chant-v0.20.0. Surfaced during #1049 verification.
@lex00
lex00 merged commit 35a1bb0 into main Jul 27, 2026
5 checks passed
lex00 added a commit that referenced this pull request Jul 27, 2026
just release bumps every workspace package.json but left
package-lock.json recording the previous versions; #1094 cleaned up the
0.20.0 drift, this stops it recurring.
lex00 added a commit that referenced this pull request Jul 31, 2026
…rified commit (#1281)

Closes the two in-repo halves of #1255. The third (a trusted-publisher record
for @intentius/chant-k8s-client) is done on npmjs.com — the package published
0.33.1 over OIDC with provenance in #1278.

## Peer ranges (#1255.2)

`just release` rewrites the `@intentius/*` peer ranges alongside `.version`,
added in #411 because ranges frozen at an old version break clean installs.
`release-lexicon` only ever set `.version`, so a single-lexicon patch that
needed a newer core silently shipped a stale range.

The two recipes cannot share a literal. A whole-repo release moves everything
together, so `^$next` is correct there; a single-lexicon patch leaves core
where it is, so its ranges must track the CURRENT core and github-lexicon
versions. Pinning them to `$next` would demand a core that does not exist.
The test asserts that mechanism rather than a shared value.

`release-lexicon` also now runs `npm install --package-lock-only` and commits
the result, for the same reason `just release` has since #1094 — a bump that
leaves the lockfile recording the old version is the same defect.

## Preflight (#1255.3)

Both recipes pushed the bump commit straight to main, bypassing branch
protection, so the commit a release tag pointed at was one CI never ran — and
nothing checked that the code being released was green either.

scripts/release-preflight.sh, shared by both recipes rather than copied into
each, refuses to tag unless the tree is clean, HEAD matches its pushed branch,
and the `chant` run for that commit concluded success. `release` additionally
requires main, since it pushes main explicitly. `CHANT_RELEASE_SKIP_PREFLIGHT=1`
is the emergency opt-out.

Exercised every path: dirty tree, wrong branch, unpushed HEAD, CI still
running (caught main mid-run and printed the run URL), and the opt-out.

The guards live in release-wiring.test.ts, where #1255 said they belong, and
each was verified to fail by reverting the fix it covers.


Claude-Session: https://claude.ai/code/session_01JTHr67zuAjGHJAX6gF5tYA

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
@lex00
lex00 deleted the chore/lockfile-0.20.0 branch August 3, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant