You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI: switch npm install to npm ci for reproducible builds #487
The validate workflow in .github/workflows/ci.yml currently installs dependencies with npm install. This resolves versions from the live registry on every run, which can silently drift from package-lock.json and produce non-reproducible builds.
Switch to npm ci, which:
Installs strictly from package-lock.json.
Fails fast if the lockfile is out of sync with package.json.
Is faster in CI because it skips dependency resolution.
Does not mutate the lockfile.
The workflow already sets cache: 'npm' in actions/setup-node, so npm ci will work with the existing cache configuration.
Scope
CI configuration only. One line in .github/workflows/ci.yml:
Change run: npm install to run: npm ci in the "Install dependencies"
step.
No application code, dependency versions, or lockfile changes are required. This assumes package-lock.json is committed and in sync with package.json (a separate lockfile-sync fix may be a prerequisite).
Verification
package-lock.json is present and committed in the repo.
npm ci succeeds locally on the current lockfile.
The validate job passes identically after the change (same Node 22,
same npm cache).
Notes
The "Run Biome Check" step may still report pre-existing formatting diagnostics across src/; that is unrelated to this change.
Activity
github-actions commentedon Nov 15, 2026
Discussions are carried on Discord.
Instead of commenting here, go to the Discord channel.
If you find this project useful, a GitHub star would be appreciated.