1 name: Generate documentation
12 uses: actions/checkout@v4
15 uses: pnpm/action-setup@v4
18 uses: actions/setup-node@v4
23 - name: Generate documentation
25 pnpm install --ignore-scripts --frozen-lockfile
29 if: github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
31 COMMIT_MESSAGE: 'docs: generate documentation'
32 COMMIT_AUTHOR: Documentation Bot
33 COMMIT_EMAIL: documentation-bot@users.noreply.github.com
35 git config --local user.name "${{ env.COMMIT_AUTHOR }}"
36 git config --local user.email "${{ env.COMMIT_EMAIL }}"
39 git commit -a -m "${{ env.COMMIT_MESSAGE }}"
42 if: github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
43 uses: CasperWA/push-protected@v2
45 token: ${{ secrets.GH_TOKEN_PROTECTED }}
46 branch: ${{ github.event.repository.default_branch }}