File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments