Skip to content

ci: commit Pi extension lockfile and switch vitest job to npm ci#200

Merged
OthmanAdi merged 1 commit into
OthmanAdi:masterfrom
Yigtwxx:chore/pi-extension-lockfile
Jul 9, 2026
Merged

ci: commit Pi extension lockfile and switch vitest job to npm ci#200
OthmanAdi merged 1 commit into
OthmanAdi:masterfrom
Yigtwxx:chore/pi-extension-lockfile

Conversation

@Yigtwxx

@Yigtwxx Yigtwxx commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #199, as suggested in the merge comment.

What

  • Commits package-lock.json for the Pi extension package at .pi/skills/planning-with-files/extensions/planning-with-files/.
  • Switches the vitest job from npm install to npm ci and removes the now-stale comment about the missing lockfile.
  • Enables setup-node npm caching keyed on the lockfile path, which shaves the install step on repeat runs.

Why

Without a lockfile, every CI run re-resolves dependency versions, so the vitest job could drift or break on a transitive release without any change in this repo. npm ci installs exactly what the lockfile pins and fails loudly if package.json and the lockfile ever disagree.

Notes

Validation

Workflow dispatched on the fork with this branch: all three jobs green (pytest ubuntu, pytest windows, vitest), run 28975796461. Locally on Windows: npm ci from a clean node_modules followed by npm test, 21/21 tests pass.

The vitest job ran npm install because no lockfile was committed, so
dependency resolution could drift between runs. Committing
package-lock.json makes installs reproducible, lets the job use npm ci,
and enables setup-node npm caching keyed on the lockfile.

Verified locally: npm ci from a clean node_modules, then vitest run,
21/21 tests pass.
@OthmanAdi
OthmanAdi merged commit bdef0e0 into OthmanAdi:master Jul 9, 2026
3 checks passed
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.

2 participants