File tree 2 files changed +41
-21
lines changed
2 files changed +41
-21
lines changed Original file line number Diff line number Diff line change 8
8
if : github.event.pull_request.head.repo.full_name == 'callstack/react-native-paper'
9
9
steps :
10
10
- name : Checkout
11
- uses : actions/checkout@v1
11
+ uses : actions/checkout@v4
12
12
13
13
- name : Setup Node.js
14
- uses : actions/setup-node@v1
14
+ uses : actions/setup-node@v4
15
15
with :
16
- node-version : 16 .x
16
+ node-version : 18 .x
17
17
18
18
- name : Setup Expo
19
19
uses : expo/expo-github-action@v7
20
20
with :
21
21
eas-version : latest
22
22
token : ${{ secrets.EXPO_TOKEN }}
23
23
24
- - name : Get yarn cache
24
+ - name : Restore dependencies
25
25
id : yarn-cache
26
- run : echo "::set-output name=dir::$(yarn cache dir)"
27
-
28
- - name : Check yarn cache
29
- uses : actions/cache@v1
26
+ uses : actions/cache/restore@v4
30
27
with :
31
- path : ${{ steps.yarn-cache.outputs.dir }}
32
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock ') }}
28
+ path : ' **/node_modules '
29
+ key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles(' **/package.json', '!node_modules/** ') }}
33
30
restore-keys : |
31
+ ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
34
32
${{ runner.os }}-yarn-
35
33
36
34
- name : Install dependencies
37
- run : yarn
35
+ if : steps.yarn-cache.outputs.cache-hit != 'true'
36
+ run : |
37
+ sudo corepack enable
38
+ yarn --cwd example --immutable
39
+ yarn --immutable
40
+
41
+ - name : Cache dependencies
42
+ if : steps.yarn-cache.outputs.cache-hit != 'true'
43
+ uses : actions/cache/save@v4
44
+ with :
45
+ path : ' **/node_modules'
46
+ key : ${{ steps.yarn-cache.outputs.cache-primary-key }}
38
47
39
48
- name : Publish Expo app
40
49
working-directory : ./example
Original file line number Diff line number Diff line change 15
15
- name : Setup Node.js
16
16
uses : actions/setup-node@v4
17
17
with :
18
- node-version : 16 .x
18
+ node-version : 18 .x
19
19
20
20
- name : Setup Expo
21
21
uses : expo/expo-github-action@v7
@@ -24,18 +24,29 @@ jobs:
24
24
eas-version : latest
25
25
token : ${{ secrets.EXPO_TOKEN }}
26
26
27
- - name : Get yarn cache
28
- id : yarn-cache-path
29
- run : echo "::set-output name=dir::$(yarn cache dir)"
30
-
31
- - uses : actions/cache@v4
27
+ - name : Restore dependencies
28
+ id : yarn-cache
29
+ uses : actions/cache/restore@v4
32
30
with :
33
- path : ${{ steps.yarn-cache-path.outputs.dir }}
34
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
35
- restore-keys : ${{ runner.os }}-yarn-
31
+ path : ' **/node_modules'
32
+ key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
33
+ restore-keys : |
34
+ ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
35
+ ${{ runner.os }}-yarn-
36
36
37
37
- name : Install dependencies
38
- run : yarn
38
+ if : steps.yarn-cache.outputs.cache-hit != 'true'
39
+ run : |
40
+ sudo corepack enable
41
+ yarn --cwd example --immutable
42
+ yarn --immutable
43
+
44
+ - name : Cache dependencies
45
+ if : steps.yarn-cache.outputs.cache-hit != 'true'
46
+ uses : actions/cache/save@v4
47
+ with :
48
+ path : ' **/node_modules'
49
+ key : ${{ steps.yarn-cache.outputs.cache-primary-key }}
39
50
40
51
- name : Publish Expo app update
41
52
working-directory : ./example
You can’t perform that action at this time.
0 commit comments