Skip to content

Commit dab0397

Browse files
committed
ci: use pnpm
1 parent fd1b030 commit dab0397

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,26 @@ jobs:
2525
- name: checkout
2626
uses: actions/checkout@master
2727

28-
- name: Get yarn cache directory path
29-
id: yarn-cache-dir-path
30-
run: echo "::set-output name=dir::$(yarn cache dir)"
28+
- uses: pnpm/action-setup@v2
29+
name: Install pnpm
30+
id: pnpm-install
31+
with:
32+
version: 7
33+
run_install: false
34+
35+
- name: Get pnpm store directory
36+
id: pnpm-cache
37+
shell: bash
38+
run: |
39+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
3140
32-
- uses: actions/cache@v2
33-
id: yarn-cache
41+
- uses: actions/cache@v3
42+
name: Setup pnpm cache
3443
with:
35-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
36-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
44+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
45+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
3746
restore-keys: |
38-
${{ runner.os }}-yarn-
47+
${{ runner.os }}-pnpm-store-
3948
4049
- name: Install dependencies
4150
if: steps.cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)