Skip to content

chore: bump default Reanimated in docs v3 (#7878) #121

chore: bump default Reanimated in docs v3 (#7878)

chore: bump default Reanimated in docs v3 (#7878) #121

name: Docs Reanimated publish
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
push:
branches:
- main
paths:
- packages/docs-reanimated/**
- packages/docs-worklets/**
workflow_dispatch:
jobs:
publish:
if: github.repository == 'software-mansion/react-native-reanimated'
runs-on: ubuntu-latest
env:
REANIMATED_DOCS_DIR: packages/docs-reanimated
WORKLETS_DOCS_DIR: packages/docs-worklets
steps:
- name: Check out
uses: actions/checkout@v4
- name: Configure git user info
run: >-
git config --local user.email "[email protected]"
&& git config --local user.name "GitHub Action"
- name: Build Reanimated docs
working-directory: ${{ env.REANIMATED_DOCS_DIR }}
run: yarn && yarn build
- name: Build Worklets docs
working-directory: ${{ env.WORKLETS_DOCS_DIR }}
run: yarn && yarn build
- name: Publish generated content to GitHub Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
FOLDER: packages/docs-reanimated/build
BRANCH: gh-pages
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}