/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
.github/actions/diff-js-api-breaking-changes/action.yml
23 строки
962 B
Alex Hunt
Consolidate JS API scripts under scripts/js-api/, update docs (#52469)
08 июл 2025, 01:04
08 июл 2025, 01:04
918f02d
Код
Авторство
О чём код?
name: diff-js-api-breaking-changes description: Check for breaking changes in the public React Native JS API runs: using: composite steps: - name: Fetch snapshot from PR head shell: bash env: SCRATCH_DIR: ${{ runner.temp }}/diff-js-api-breaking-changes run: | mkdir $SCRATCH_DIR git fetch --depth=1 origin ${{ github.event.pull_request.head.sha }} git show ${{ github.event.pull_request.head.sha }}:packages/react-native/ReactNativeApi.d.ts > $SCRATCH_DIR/ReactNativeApi-after.d.ts \ || echo "" > $SCRATCH_DIR/ReactNativeApi.d.ts - name: Run breaking change detection shell: bash env: SCRATCH_DIR: ${{ runner.temp }}/diff-js-api-breaking-changes run: | node ./scripts/js-api/diff-api-snapshot \ ${{ github.workspace }}/packages/react-native/ReactNativeApi.d.ts \ $SCRATCH_DIR/ReactNativeApi-after.d.ts \ > $SCRATCH_DIR/output.json