fix: Disable SSR due to issues in production #24
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: Update API Docs | |
on: | |
push: | |
branches: [main, catalog] | |
workflow_dispatch: | |
# allows triggering from the gihub UI | |
jobs: | |
check-for-doc-changes: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: ${{ !env.ACT && 'pnpm' || '' }} | |
- uses: google/wireit@setup-github-actions-caching/v1 | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Update Docs | |
run: pnpm update-docs | |
- name: Check if update-docs produces git diff | |
id: ifChange | |
run: git diff --exit-code || echo "::set-output name=changed::yes" | |
- name: Create PR | |
if: steps.ifChange.outputs.changed == 'yes' | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: 'docs: update API docs' | |
author: lit-robot <[email protected]> | |
committer: lit-robot <[email protected]> | |
title: 'docs: update API docs' | |
body: This PR was auto generated by the update-docs-on-main GitHub action. | |
reviewers: maicol07 | |
branch: auto-update-docs |