-
Notifications
You must be signed in to change notification settings - Fork 74
39 lines (38 loc) · 1.04 KB
/
docs-build-check.yml
File metadata and controls
39 lines (38 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Check documentation
on:
push:
branches:
- main
paths:
- 'docs/**'
- '.github/workflows/docs-build-check.yml'
pull_request:
branches:
- main
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'docs/**'
- '.github/workflows/docs-build-check.yml'
workflow_dispatch:
jobs:
check:
if: github.repository == 'software-mansion/react-native-executorch' && github.event.pull_request.draft != true
runs-on: ubuntu-latest
concurrency:
group: docs-check-${{ github.ref }}
cancel-in-progress: true
env:
WORKING_DIRECTORY: docs
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Use Node.js 24
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install node dependencies
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn install --immutable
- name: Generate docs
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn build