File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,29 @@ jobs:
2222
2323 steps :
2424 - uses : actions/checkout@v3
25- - run : corepack enable
25+
2626 - uses : actions/setup-node@v3
2727 with :
2828 node-version : 18
29- cache : ' pnpm'
29+
30+ - uses : pnpm/action-setup@v2
31+ with :
32+ version : 8
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
40+
41+ - uses : actions/cache@v3
42+ name : Setup pnpm cache
43+ with :
44+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
45+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
46+ restore-keys : |
47+ ${{ runner.os }}-pnpm-store-
3048
3149 - name : Cache firebase tools
3250 id : cache-firebase-tools
4563 run : pnpm install --frozen-lockfile
4664
4765 - name : Install firebase-tools
48- run : |
49- - pnpm setup
50- - pnpm add -g firebase-tools
66+ run : pnpm add -g firebase-tools
5167
5268 - name : Lint
5369 run : pnpm run lint
You can’t perform that action at this time.
0 commit comments