Skip to content

Commit 2a08587

Browse files
committed
ci: 🛠 lint and type checking 工作流依赖同步问题
1 parent c8005bb commit 2a08587

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/lint-and-type-checking.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,17 @@ jobs:
3838
with:
3939
fetch-depth: 0
4040

41+
- name: Cache pnpm store
42+
id: cache
43+
uses: actions/cache@v3
44+
with:
45+
path: ~/.pnpm-store
46+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
47+
restore-keys: |
48+
${{ runner.os }}-pnpm-
49+
4150
- name: Run lint check
42-
run: npm run lint:eslint
51+
run: pnpm run lint:eslint
4352

4453
type-check:
4554
needs: lint-and-type-checking-install
@@ -50,5 +59,14 @@ jobs:
5059
with:
5160
fetch-depth: 0
5261

62+
- name: Cache pnpm store
63+
id: cache
64+
uses: actions/cache@v3
65+
with:
66+
path: ~/.pnpm-store
67+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
68+
restore-keys: |
69+
${{ runner.os }}-pnpm-
70+
5371
- name: Run type check
54-
run: npm run type:check
72+
run: pnpm run type:check

0 commit comments

Comments
 (0)