Repository navigation
build: pin Node in mise.toml/mise.lock and add a verify script - #112
Merged
Merged
Conversation
Adopts core ADR-0043's tooling convention for this Node repository: mise.toml/mise.lock pin Node 22.23.2 as the single source Snowcat workers, CI, and developers provision from, package.json gains a non-mutating verify script (npm run check now delegates to it, since this repository's check never formats or writes), and CI provisions Node through the pinned jdx/mise-action instead of actions/setup-node. Verified locally: mise install && npm ci && npm run verify pass, and git status --porcelain is empty afterward. Closes #109.
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.
Summary
Adopts core ADR-0043's tooling convention for this Node repository, closing #109:
mise.toml([settings] lockfile = true,[tools] node = "22"— the same major CI used before this change) and the committedmise.lockfrommise install(resolves to Node 22.23.2).package.json'sengines.node(>=22.0.0) stays consistent.npm run verifyscript (check:docs && check:organization && test— read-only validators, nothing formats or writes).npm run checknow delegates toverify, since this repository's check gate never mutates, so there's nothing beyondverifyfor a developer gate to add. Documented beside the CI gate description in AGENTS.md.docs-gatejob now provisions Node via the pinnedjdx/mise-action@3c2e0cf82a5b2e5249f0d3635a4d83d0ae861518 # v4.2.5instead ofactions/setup-node, reading the version frommise.toml— one source. Thescaffold-e2ejob is untouched: it builds a separate template project with its ownpackage-lock.json, unrelated to this repository's own Node runtime.Risk tier 2 (workflow file), scoped to build tooling, CI, and docs only, per the issue's constraints.
Verification
Ran locally with
MISE_DATA_DIRpointed at a writable temp dir (the default/var/lib/snowcat-cockpit/miseisn't writable in this sandbox):Test plan
mise install && npm ci && npm run verifypasses on a clean checkoutgit status --porcelainis empty after verifyCloses #109.