Skip to content

Commit 8d8ca3e

Browse files
committed
Update workflow and action
1 parent 259d88e commit 8d8ca3e

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

.github/actions/setup/action.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@ runs:
1515
with:
1616
path: |
1717
**/node_modules
18-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/package.json') }}
18+
.yarn/install-state.gz
19+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
1920
restore-keys: |
20-
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
21+
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
2122
${{ runner.os }}-yarn-
2223
2324
- name: Install dependencies
2425
if: steps.yarn-cache.outputs.cache-hit != 'true'
25-
run: |
26-
yarn install --cwd example --frozen-lockfile
27-
yarn install --frozen-lockfile
26+
run: yarn install --immutable
2827
shell: bash

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
uses: ./.github/actions/setup
4747

4848
- name: Build package
49-
run: yarn prepack
49+
run: yarn prepare
5050

5151
build-android:
5252
runs-on: ubuntu-latest
@@ -63,13 +63,13 @@ jobs:
6363
uses: actions/cache@v3
6464
with:
6565
path: ${{ env.TURBO_CACHE_DIR }}
66-
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('**/yarn.lock') }}
66+
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
6767
restore-keys: |
6868
${{ runner.os }}-turborepo-android-
6969
7070
- name: Check turborepo cache for Android
7171
run: |
72-
TURBO_CACHE_STATUS=$(node -p "($(yarn --silent turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:android').cache.status")
72+
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:android').cache.status")
7373
7474
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
7575
echo "turbo_cache_hit=1" >> $GITHUB_ENV
@@ -117,13 +117,13 @@ jobs:
117117
uses: actions/cache@v3
118118
with:
119119
path: ${{ env.TURBO_CACHE_DIR }}
120-
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('**/yarn.lock') }}
120+
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
121121
restore-keys: |
122122
${{ runner.os }}-turborepo-ios-
123123
124124
- name: Check turborepo cache for iOS
125125
run: |
126-
TURBO_CACHE_STATUS=$(node -p "($(yarn --silent turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")
126+
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")
127127
128128
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
129129
echo "turbo_cache_hit=1" >> $GITHUB_ENV
@@ -143,7 +143,7 @@ jobs:
143143
- name: Install cocoapods
144144
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
145145
run: |
146-
yarn example pods
146+
yarn pod-install example/ios
147147
env:
148148
NO_FLIPPER: 1
149149

tsconfig.build.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
{
32
"extends": "./tsconfig",
43
"exclude": ["example"]

0 commit comments

Comments
 (0)