Skip to content

Commit d7c2094

Browse files
authored
ci: fix docs build check workflow failing on node post setup (#157)
## Description <!-- Provide a concise and descriptive summary of the changes implemented in this PR. --> ### Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Documentation update (improves or adds clarity to existing documentation) ### Tested on - [ ] iOS - [ ] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues <!-- Link related issues here using #issue-number --> ### Checklist - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [ ] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. -->
1 parent b13f894 commit d7c2094

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

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

Lines changed: 10 additions & 7 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'
@@ -18,17 +23,15 @@ jobs:
1823
env:
1924
WORKING_DIRECTORY: docs
2025
steps:
21-
- name: checkout
22-
uses: actions/checkout@v2
26+
- name: Checkout repository
27+
uses: actions/checkout@v3
2328
- name: Use Node.js 18
2429
uses: actions/setup-node@v2
2530
with:
2631
node-version: 18
27-
cache: 'yarn'
2832
- name: Install node dependencies
2933
working-directory: ${{ env.WORKING_DIRECTORY }}
30-
# the mkdir is a workaround to avoid this: https://github.com/actions/setup-node/issues/317
31-
run: mkdir -p .yarn/cache && yarn
34+
run: yarn install --immutable
3235
- name: Generate docs
3336
working-directory: ${{ env.WORKING_DIRECTORY }}
3437
run: yarn build

0 commit comments

Comments
 (0)