Skip to content

Commit 27cb401

Browse files
committed
ci: fix yarn.lock consistency issues in formatting workflow
- Set exact yarn version (1.22.22) using corepack for consistency - Use 'yarn install --frozen-lockfile' instead of plain 'yarn' - Exclude yarn.lock from formatting diff check to prevent false failures - Ensures consistent dependency resolution between local and CI environments Resolves CI formatting failures caused by yarn version differences.
1 parent d492663 commit 27cb401

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/check-formatting.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ jobs:
1515
uses: actions/[email protected]
1616
with:
1717
node-version: 20
18+
- name: Enable Corepack and set exact yarn version
19+
run: |
20+
corepack enable
21+
yarn set version 1.22.22
1822
- name: Build and Format
19-
run: yarn
23+
run: yarn install --frozen-lockfile
2024
- name: Check Formatting
21-
run: git diff --exit-code
25+
run: git diff --exit-code -- ':!yarn.lock'

0 commit comments

Comments
 (0)