fix(utils/react): support react 18, add getReactRoot #109
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Generate Docs | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Setup | Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
path: lib | |
- name: Setup | Checkout wiki | |
uses: actions/checkout@v3 | |
with: | |
repository: SteamDeckHomebrew/wiki | |
path: wiki | |
ssh-key: ${{ secrets.SSH_DEPLOY_KEY }} | |
persist-credentials: true | |
- name: Setup | Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Setup | Dependencies | |
run: | | |
cd lib | |
npm i -g pnpm | |
pnpm i --frozen-lockfile | |
- name: Build Docs | |
run: | | |
cd lib | |
pnpm run docs --out ../wiki/api-docs/decky-frontend-lib | |
- name: Commit files | |
run: | | |
cd wiki | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add -A ./api-docs/decky-frontend-lib | |
git commit -m "Update decky-frontend-lib API docs" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
ssh: true | |
directory: ./wiki | |
repository: SteamDeckHomebrew/wiki | |
branch: main |