Skip to content

Commit 76b9607

Browse files
committed
Install dependenceis to pnpm
1 parent e53d097 commit 76b9607

1 file changed

Lines changed: 20 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,32 @@ jobs:
2222
- name: Checkout 🛎
2323
uses: actions/checkout@master
2424

25-
- name: Setup node env 🏗
26-
uses: actions/setup-node@v3.8.1
25+
- name: Install Node.js
26+
uses: actions/setup-node@v3
2727
with:
28-
node-version: ${{ matrix.node }}
29-
check-latest: true
28+
node-version: 16
3029

31-
- name: Get yarn cache directory path 🛠
32-
id: yarn-cache-dir-path
33-
run: echo "::set-output name=dir::$(yarn cache dir)"
30+
- uses: pnpm/action-setup@v2
31+
name: Install pnpm
32+
with:
33+
version: 8
34+
run_install: false
35+
36+
- name: Get pnpm store directory
37+
shell: bash
38+
run: |
39+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
3440
35-
- name: Cache node_modules 📦
36-
uses: actions/cache@v3.3.2
37-
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
41+
- uses: actions/cache@v3
42+
name: Setup pnpm cache
3843
with:
39-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
40-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
44+
path: ${{ env.STORE_PATH }}
45+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
4146
restore-keys: |
42-
${{ runner.os }}-yarn-
47+
${{ runner.os }}-pnpm-store-
4348
44-
- name: Install dependencies 👨🏻‍💻
45-
run: yarn
49+
- name: Install dependencies 📦
50+
run: pnpm install
4651

4752
- name: Run linter 👀
4853
run: yarn lint

0 commit comments

Comments
 (0)