build: use latest pnpm version and related version formats
[poolifier.git] / .github / workflows / generate-documentation.yml
index 863aa1e9765dfd23590bbf597c3cd921b3097f43..a59de95e6974ddbe96b9536e1aaee409578c5db1 100644 (file)
@@ -18,15 +18,16 @@ jobs:
 
       - name: Generate documentation
         run: |
-          npm ci
-          npm run typedoc
+          corepack enable
+          pnpm install
+          pnpm run typedoc
 
       - name: Commit files
         if: "github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'"
         run: |
           git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
           git config --local user.name "github-actions[bot]"
-          git commit -m "Generate documentation" -a
+          git commit -m "chore: generate documentation" -a
 
       - name: Push changes
         if: "github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'"