-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 801 Bytes
/
build-docs.yml
File metadata and controls
30 lines (26 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Create Docs
on: [push, pull_request]
jobs:
docs:
name: Build docs from JSDoc
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.ref }} # Ensure it fetches the correct ref
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Install dependencies
run: npm ci
- name: Generate docs
run: npm run docs
- name: Commit Typedocs
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update docs based on TypeDocs