forked from byCedric/expo-monorepo-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
54 lines (45 loc) · 1.21 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Setup Monorepo
description: Prepare and install everything for the monorepo
inputs:
node-version:
description: Version of Node to use
default: 20.x
pnpm-version:
description: Version of pnpm to use
default: 9.x
eas-version:
description: Version of EAS CLI to use
default: latest
expo-token:
description: Expo token to authenticate with
required: false
runs:
using: composite
steps:
- name: 🏗 Setup pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ inputs.pnpm-version }}
- name: 🏗 Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: pnpm
- name: 🏗 Setup Expo
uses: expo/expo-github-action@v8
with:
eas-version: ${{ inputs.eas-version }}
token: ${{ inputs.expo-token }}
- name: 📦 Install dependencies
run: pnpm install
shell: bash
- name: ♻️ Restore cache
uses: actions/cache@v4
with:
key: turbo-${{ runner.os }}-${{ github.sha }}
restore-keys: |
turbo-${{ runner.os }}
path: |
node_modules/.cache/turbo
apps/*/.turbo
packages/*/.turbo