Skip to content

Build the decks with npm ci so a deploy cannot drift the lockfile - #774

Merged
xmap merged 1 commit into
mainfrom
worktree-deck-build-npm-ci
Sep 4, 2026
Merged

Build the decks with npm ci so a deploy cannot drift the lockfile#774
xmap merged 1 commit into
mainfrom
worktree-deck-build-npm-ci

Conversation

@xmap

@xmap xmap commented Sep 4, 2026

Copy link
Copy Markdown
Owner

npm install is free to resolve a newer dependency and rewrite
package-lock.json during the build, so a deploy could ship a deck built
against a tree that no longer matches what is committed. npm ci installs the
lockfile exactly and fails if the two diverged.

Each deck README already tells a human to use ci rather than install,
because these lockfiles carry linux native-binary entries that a resolve on
another platform strips. CI running the weaker command was the inconsistency.

Verified before switching, since npm ci fails where npm install quietly
repairs: both committed lockfiles resolve cleanly under npm ci --dry-run, and
the dry run left them untouched. The stale npm install mention in the comment
above the step is updated too.

🤖 Generated with Claude Code

npm install is free to resolve a newer dependency and rewrite package-lock.json
during the build, which means a deploy could ship a deck built against a tree
that no longer matches what is committed. npm ci installs the lockfile exactly
and fails instead if the two have diverged, which is the behaviour a deploy
wants.

Each deck README already tells a human to use ci rather than install, for a
related reason: these lockfiles carry linux native-binary entries that a resolve
on another platform strips. CI running the weaker command was the inconsistency.

Checked before switching, because ci fails where install would quietly repair:
both committed lockfiles resolve cleanly under npm ci --dry-run, and the dry run
left them untouched.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@xmap
xmap enabled auto-merge September 4, 2026 21:21
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Coverage report

This PR does not seem to contain any modification to coverable code.

@xmap
xmap merged commit 7899d2a into main Sep 4, 2026
19 checks passed
@xmap
xmap deleted the worktree-deck-build-npm-ci branch September 4, 2026 21:34
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