File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
.github/actions/install-dependencies Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Install Dependencies
2+
3+ description : This workflow will install dependencies and should be used as an action for other workflows
4+
5+ runs :
6+ using : " composite"
7+
8+ steps :
9+ - name : Install pnpm 📦
10+ uses : pnpm/action-setup@v2.2.4
11+ with :
12+ version : 8
13+ run_install : false
14+
15+ - name : Setup pnpm config 📖
16+ run : pnpm config set store-dir .pnpm-store
17+ shell : bash
18+
19+ - name : Get pnpm store directory 🏬
20+ id : pnpm-cache
21+ shell : bash
22+ run : |
23+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
24+
25+ - name : Setup pnpm cache 🧃
26+ uses : actions/cache@v3
27+ with :
28+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
29+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
30+ restore-keys : |
31+ ${{ runner.os }}-pnpm-store-
32+
33+ - name : Install dependencies 👨🏻💻
34+ run : pnpm install --frozen-lockfile --ignore-scripts
35+ shell : bash
36+
37+
You can’t perform that action at this time.
0 commit comments