1 name: Generate documentation
12 uses: actions/checkout@v4
15 uses: pnpm/action-setup@v2
20 uses: actions/setup-node@v3
25 - name: Generate documentation
27 pnpm install --ignore-scripts --frozen-lockfile
31 if: github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
33 COMMIT_MESSAGE: 'docs: generate documentation'
34 COMMIT_AUTHOR: Documentation Bot
35 COMMIT_EMAIL: documentation-bot@users.noreply.github.com
37 git config --local user.name "${{ env.COMMIT_AUTHOR }}"
38 git config --local user.email "${{ env.COMMIT_EMAIL }}"
41 git commit -a -m "${{ env.COMMIT_MESSAGE }}"
44 if: github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
45 uses: CasperWA/push-protected@v2
47 token: ${{ secrets.GH_TOKEN_PROTECTED }}
48 branch: ${{ github.event.repository.default_branch }}