repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2004 from poolifier/combined-prs-branch
[poolifier.git]
/
.github
/
workflows
/
generate-documentation.yml
diff --git
a/.github/workflows/generate-documentation.yml
b/.github/workflows/generate-documentation.yml
index 52dbdbde152c316e8b1563d688d4abca957821d8..095f1d50c08963133be658001a127e01b1b318b7 100644
(file)
--- a/
.github/workflows/generate-documentation.yml
+++ b/
.github/workflows/generate-documentation.yml
@@
-9,31
+9,36
@@
jobs:
steps:
- name: Checkout
steps:
- name: Checkout
- uses: actions/checkout@v
3
+ uses: actions/checkout@v
4
- name: Setup pnpm
- name: Setup pnpm
- uses: pnpm/action-setup@v
2
+ uses: pnpm/action-setup@v
3
with:
version: 8
with:
version: 8
- - name: Setup
node
- uses: actions/setup-node@v
3
+ - name: Setup
Node.js
+ uses: actions/setup-node@v
4
with:
with:
- node-version: '
18
.x'
+ node-version: '
20
.x'
cache: 'pnpm'
- name: Generate documentation
run: |
cache: 'pnpm'
- name: Generate documentation
run: |
- pnpm install
+ pnpm install
--ignore-scripts --frozen-lockfile
pnpm typedoc
- name: Commit files
if: github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
pnpm typedoc
- name: Commit files
if: github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
+ env:
+ COMMIT_MESSAGE: 'docs: generate documentation'
+ COMMIT_AUTHOR: Documentation Bot
+ COMMIT_EMAIL: documentation-bot@users.noreply.github.com
run: |
run: |
- git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
- git config --local user.name "github-actions[bot]"
+ git config --local user.name "${{ env.COMMIT_AUTHOR }}"
+ git config --local user.email "${{ env.COMMIT_EMAIL }}"
+ git pull
git add ./docs
git add ./docs
- git commit -
m "chore: generate documentation" -a
+ git commit -
a -m "${{ env.COMMIT_MESSAGE }}"
- name: Push changes
if: github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
- name: Push changes
if: github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'