Skip to content

Commit 5ef6739

Browse files
committed
chore: add deps caching to expo publish action
1 parent 231188b commit 5ef6739

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ jobs:
2424
expo-password: ${{ secrets.EXPO_CLI_PASSWORD }}
2525
expo-cache: true
2626

27+
- name: Get yarn cache
28+
id: yarn-cache
29+
run: echo "::set-output name=dir::$(yarn cache dir)"
30+
31+
- uses: actions/cache@v1
32+
with:
33+
path: ${{ steps.yarn-cache.outputs.dir }}
34+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
35+
restore-keys: |
36+
${{ runner.os }}-yarn-
37+
2738
- name: Install dependencies
2839
run: yarn bootstrap
2940

0 commit comments

Comments
 (0)