Skip to content

Commit 5c61ca0

Browse files
committed
ci: fix yarn cache dir
1 parent b13f894 commit 5c61ca0

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/docs-build-check.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ on:
66
- main
77
paths:
88
- 'docs/**'
9-
workflow_dispatch:
10-
9+
- '.github/workflows/docs-build-check.yml'
10+
pull_request:
11+
branches:
12+
- main
13+
paths:
14+
- 'docs/**'
15+
- '.github/workflows/docs-build-check.yml'
1116
jobs:
1217
check:
1318
if: github.repository == 'software-mansion/react-native-executorch'
@@ -20,6 +25,8 @@ jobs:
2025
steps:
2126
- name: checkout
2227
uses: actions/checkout@v2
28+
- name: For act to work (local testing)
29+
run: npm -g install yarn
2330
- name: Use Node.js 18
2431
uses: actions/setup-node@v2
2532
with:
@@ -28,7 +35,7 @@ jobs:
2835
- name: Install node dependencies
2936
working-directory: ${{ env.WORKING_DIRECTORY }}
3037
# the mkdir is a workaround to avoid this: https://github.com/actions/setup-node/issues/317
31-
run: mkdir -p .yarn/cache && yarn
38+
run: mkdir -p ../.yarn/cache && yarn
3239
- name: Generate docs
3340
working-directory: ${{ env.WORKING_DIRECTORY }}
3441
run: yarn build

0 commit comments

Comments
 (0)