Skip to content

Commit b38f864

Browse files
chore: add setup-node-yarn action and update workflows to use it
1 parent 5798a5a commit b38f864

File tree

5 files changed

+25
-3
lines changed

5 files changed

+25
-3
lines changed

.github/actions/setup-node-yarn.yml renamed to .github/actions/setup-node-yarn/action.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ description: 'Checkout code, setup Node.js, enable Yarn, and install dependencie
44
runs:
55
using: 'composite'
66
steps:
7-
- name: Checkout
8-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
9-
107
- name: Setup Node
118
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
129
with:

.github/workflows/build-android.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12+
- name: Checkout
13+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
14+
1215
- name: Setup Project
1316
uses: ./.github/actions/setup-node-yarn
1417

.github/workflows/build-ios.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
runs-on: macos-latest
1010

1111
steps:
12+
- name: Checkout
13+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
14+
1215
- name: Setup Project
1316
uses: ./.github/actions/setup-node-yarn
1417

@@ -24,6 +27,17 @@ jobs:
2427
bundler-cache: true
2528
working-directory: example/ios
2629

30+
- name: Cache CocoaPods
31+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
32+
with:
33+
path: |
34+
example/ios/Pods
35+
~/Library/Caches/CocoaPods
36+
~/.cocoapods
37+
key: ${{ runner.os }}-pods-${{ hashFiles('example/ios/Podfile.lock') }}
38+
restore-keys: |
39+
${{ runner.os }}-pods-
40+
2741
- name: Install CocoaPods
2842
working-directory: example/ios
2943
run: |

.github/workflows/lint-and-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12+
- name: Checkout
13+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
14+
1215
- name: Setup Project
1316
uses: ./.github/actions/setup-node-yarn
1417

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
pull-requests: write
2222

2323
steps:
24+
- name: Checkout
25+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
26+
with:
27+
fetch-depth: 0
28+
2429
- name: Setup Project
2530
uses: ./.github/actions/setup-node-yarn
2631

0 commit comments

Comments
 (0)