Skip to content

Add fail-fast package-lock.json sync check#8

Merged
DhavalGojiya merged 1 commit intomainfrom
feat/lockfile-sync-check
Sep 16, 2025
Merged

Add fail-fast package-lock.json sync check#8
DhavalGojiya merged 1 commit intomainfrom
feat/lockfile-sync-check

Conversation

@DhavalGojiya
Copy link
Owner

@DhavalGojiya DhavalGojiya commented Sep 15, 2025

📦 Lockfile Sync Check in CI

This PR adds a fail-fast check for package-lock.json in the CI pipeline to ensure it is always up-to-date with package.json

✅ What this PR does

  • 🔒 Add package-lock-utd check using npx --yes [email protected] to verify lockfile is in sync
  • Run this check before build/lint steps to fail fast if lockfile is outdated
  • CI pipeline fails immediately when the lockfile is out-of-sync, saving unnecessary build time

🖼 Example Failure

If the lockfile is not in sync, the CI will fail like this:

Lockfile Out-of-Sync Example


This ensures developers cannot merge changes that break the lockfile, keeping dependencies consistent across all environments.

- Introduce `package-lock-utd` package to verify lockfile is up-to-date
- Add CI step to run this check before build/lint steps
- Ensures pipeline fails immediately if lockfile is out-of-sync
@DhavalGojiya DhavalGojiya merged commit 193f0ea into main Sep 16, 2025
2 checks passed
@DhavalGojiya DhavalGojiya deleted the feat/lockfile-sync-check branch September 28, 2025 20:28
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