Skip to content

Commit d269f57

Browse files
committed
feat(workflows): add install deps action
Signed-off-by: braks <[email protected]>
1 parent cc4d0da commit d269f57

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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/[email protected]
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+

0 commit comments

Comments
 (0)