name: auto-documentation

on:
    push:
        branches: [master]

permissions:
    contents: write

jobs:
    documentation:
        runs-on: ubuntu-latest

        steps:
            - uses: actions/checkout@v4
              with:
                  ref: ${{ github.head_ref }}
            - uses: pnpm/action-setup@v4
              with:
                  version: latest
            - name: Use Node.js
              uses: actions/setup-node@v3
              with:
                  node-version: 24
            - run: pnpm i
            - run: pnpm run docs
            - uses: stefanzweifel/git-auto-commit-action@v4
              with:
                  commit_message: 'docs(main): bump version'
