-
-
Notifications
You must be signed in to change notification settings - Fork 249
32 lines (32 loc) · 782 Bytes
/
docs-check.yml
File metadata and controls
32 lines (32 loc) · 782 Bytes
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
name: Docs build check
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
push:
branches:
- main
paths:
- '.github/workflows/docs-check.yml'
- docs/**
pull_request:
paths:
- '.github/workflows/docs-check.yml'
- docs/**
jobs:
build:
if: github.repository == 'AppAndFlow/react-native-safe-area-context'
runs-on: ubuntu-latest
env:
WORKING_DIRECTORY: docs
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install docs deps
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn install
- name: Build docs
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn build