fix: move RSCHydratedRouter and utils to /dom export (#14457)
#172
This file contains hidden or 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: π Docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| paths: | |
| - "packages/**/*.ts" | |
| - "packages/**/*.tsx" | |
| - "scripts/docs.ts" | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: "Branch to generate docs on" | |
| required: true | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| docs: | |
| if: github.repository == 'remix-run/react-router' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: β¬οΈ Checkout repo | |
| uses: actions/checkout@v5 | |
| with: | |
| token: ${{ secrets.FORMAT_PAT }} | |
| ref: ${{ github.event.inputs.branch }} | |
| - name: π¦ Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: β Setup node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: pnpm | |
| - name: π₯ Install deps | |
| run: pnpm install --frozen-lockfile | |
| - name: π Build | |
| run: pnpm build | |
| - name: π Generate Typedoc Docs | |
| run: pnpm run docs:typedoc | |
| - name: π Generate Markdown Docs | |
| run: pnpm run docs:jsdoc --write | |
| - name: πͺ Commit | |
| run: | | |
| git config --local user.email "[email protected]" | |
| git config --local user.name "Remix Run Bot" | |
| git add . | |
| if [ -z "$(git status --porcelain)" ]; then | |
| echo "πΏ no docs changed" | |
| exit 0 | |
| fi | |
| git commit -m "chore: generate markdown docs from jsdocs" | |
| git push | |
| echo "πΏ pushed docs changes https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)" |