Skip to content

fix: Disable SSR due to issues in production #24

fix: Disable SSR due to issues in production

fix: Disable SSR due to issues in production #24

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