Skip to content

feat!: text-to-speech x LLM integration #122

feat!: text-to-speech x LLM integration

feat!: text-to-speech x LLM integration #122

name: Check if API reference is up-to-date
on:
push:
branches:
- main
paths:
- 'docs/**'
- 'packages/react-native-executorch/src/**'
- '.github/workflows/api-reference-up-to-date-check.yml'
pull_request:
branches:
- main
paths:
- 'docs/**'
- 'packages/react-native-executorch/src/**'
- '.github/workflows/api-reference-up-to-date-check.yml'
workflow_dispatch:
jobs:
check:
if: github.repository == 'software-mansion/react-native-executorch'
runs-on: ubuntu-latest
concurrency:
group: api-reference-up-to-date-${{ github.ref }}
cancel-in-progress: true
env:
WORKING_DIRECTORY: docs
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install root dependencies
run: yarn install --immutable
- name: Install node docs dependencies
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn install --immutable
- name: Check TypeDoc is up-to-date
working-directory: ${{ env.WORKING_DIRECTORY }}
run: |
yarn docusaurus generate-typedoc
yarn prettier-api-reference
git status
git diff
if ! git diff --quiet; then
echo "Differences found. Look at the 'git diff' output above."
exit 1
fi