Skip to content

Commit 3c19b94

Browse files
mydeaclaude
andcommitted
ci: Verify yarn.lock stability via git diff
Replace `yarn install --frozen-lockfile` with a regular install followed by a `git diff --exit-code yarn.lock` check. `--frozen-lockfile` has repeatedly failed to detect lockfile drift; comparing against the committed lockfile catches any modification yarn actually makes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7aef0f7 commit 3c19b94

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,14 @@ jobs:
353353
uses: actions/setup-node@v6
354354
with:
355355
node-version-file: 'package.json'
356+
- name: Install dependencies
357+
run: yarn install --ignore-engines
356358
- name: Check that yarn.lock is stable
357-
run: yarn install --frozen-lockfile --ignore-engines
359+
run: |
360+
if ! git diff --exit-code yarn.lock; then
361+
echo "::error::yarn.lock has uncommitted changes after running 'yarn install'. Please run 'yarn install' locally and commit the updated yarn.lock."
362+
exit 1
363+
fi
358364
- name: Check for duplicate dependencies in lockfile
359365
run: yarn dedupe-deps:check
360366

0 commit comments

Comments
 (0)