Skip to content

Commit 9a1602a

Browse files
committed
chore: update deprecated actions
1 parent 94bf088 commit 9a1602a

File tree

2 files changed

+45
-21
lines changed

2 files changed

+45
-21
lines changed

.github/workflows/publish-each-pr.yml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,44 @@ jobs:
88
if: github.event.pull_request.head.repo.full_name == 'callstack/react-native-paper'
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v1
11+
uses: actions/checkout@v4
1212

1313
- name: Setup Node.js
14-
uses: actions/setup-node@v1
14+
uses: actions/setup-node@v4
1515
with:
16-
node-version: 16.x
16+
node-version: 18.x
1717

1818
- name: Setup Expo
1919
uses: expo/expo-github-action@v7
2020
with:
2121
eas-version: latest
2222
token: ${{ secrets.EXPO_TOKEN }}
2323

24-
- name: Get yarn cache
24+
- name: Restore dependencies
2525
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
3027
with:
31-
path: ${{ steps.yarn-cache.outputs.dir }}
32-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
28+
path: |
29+
**/node_modules
30+
.yarn/install-state.gz
31+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
3332
restore-keys: |
33+
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
3434
${{ runner.os }}-yarn-
3535
3636
- name: Install dependencies
37-
run: yarn
37+
if: steps.yarn-cache.outputs.cache-hit != 'true'
38+
run: yarn install --immutable
39+
shell: bash
40+
41+
- name: Cache dependencies
42+
if: steps.yarn-cache.outputs.cache-hit != 'true'
43+
uses: actions/cache/save@v4
44+
with:
45+
path: |
46+
**/node_modules
47+
.yarn/install-state.gz
48+
key: ${{ steps.yarn-cache.outputs.cache-primary-key }}
3849

3950
- name: Publish Expo app
4051
working-directory: ./example

.github/workflows/updates.yml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Node.js
1616
uses: actions/setup-node@v4
1717
with:
18-
node-version: 16.x
18+
node-version: 18.x
1919

2020
- name: Setup Expo
2121
uses: expo/expo-github-action@v7
@@ -24,18 +24,31 @@ jobs:
2424
eas-version: latest
2525
token: ${{ secrets.EXPO_TOKEN }}
2626

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
3230
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: |
32+
**/node_modules
33+
.yarn/install-state.gz
34+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
35+
restore-keys: |
36+
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
37+
${{ runner.os }}-yarn-
3638
3739
- name: Install dependencies
38-
run: yarn
40+
if: steps.yarn-cache.outputs.cache-hit != 'true'
41+
run: yarn install --immutable
42+
shell: bash
43+
44+
- name: Cache dependencies
45+
if: steps.yarn-cache.outputs.cache-hit != 'true'
46+
uses: actions/cache/save@v4
47+
with:
48+
path: |
49+
**/node_modules
50+
.yarn/install-state.gz
51+
key: ${{ steps.yarn-cache.outputs.cache-primary-key }}
3952

4053
- name: Publish Expo app update
4154
working-directory: ./example

0 commit comments

Comments
 (0)