Skip to content

Commit c22ffb4

Browse files
committed
ci: fix commitlint workflow
1 parent cbd59fc commit c22ffb4

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/commit-lint.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,20 @@ jobs:
2222
- name: Enable corepack
2323
run: npm i -g corepack@latest && corepack enable
2424

25+
- name: Get pnpm store directory
26+
shell: bash
27+
run: |
28+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
29+
30+
- uses: actions/cache@v4
31+
name: Setup pnpm cache
32+
with:
33+
path: ${{ env.STORE_PATH }}
34+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
35+
restore-keys: |
36+
${{ runner.os }}-pnpm-store-
37+
38+
- name: Install dependencies
39+
run: pnpm install --frozen-lockfile
40+
2541
- run: pnpm dlx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD

0 commit comments

Comments
 (0)