2023-03-08 08:23:47 +00:00
|
|
|
name: Generate API DOC
|
|
|
|
|
|
|
|
on:
|
2023-10-09 15:47:05 +00:00
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
paths:
|
2024-06-13 10:38:52 +00:00
|
|
|
- '**/**/**/*.d.ts'
|
2023-10-09 15:47:05 +00:00
|
|
|
- '/api-generator/build-apidoc.js'
|
2023-03-08 08:23:47 +00:00
|
|
|
|
|
|
|
permissions:
|
2023-10-09 15:47:05 +00:00
|
|
|
contents: write
|
2023-03-08 08:23:47 +00:00
|
|
|
|
|
|
|
jobs:
|
2023-10-09 15:47:05 +00:00
|
|
|
build:
|
|
|
|
if: github.repository == 'primefaces/primevue' && github.ref == 'refs/heads/master'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-06-14 14:52:08 +00:00
|
|
|
node-version: [18, 20]
|
2023-10-09 15:47:05 +00:00
|
|
|
|
|
|
|
steps:
|
2024-06-14 14:52:08 +00:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Install pnpm
|
|
|
|
uses: pnpm/action-setup@v4
|
|
|
|
with:
|
|
|
|
version: 9
|
2023-10-09 15:47:05 +00:00
|
|
|
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2024-06-14 14:52:08 +00:00
|
|
|
uses: actions/setup-node@v4
|
2023-10-09 15:47:05 +00:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
2024-06-14 14:52:08 +00:00
|
|
|
cache: 'pnpm'
|
2023-10-09 15:47:05 +00:00
|
|
|
|
|
|
|
- name: Install node packages
|
2024-06-14 14:52:08 +00:00
|
|
|
run: pnpm run setup
|
2023-10-09 15:47:05 +00:00
|
|
|
|
|
|
|
- name: Generate api doc
|
2024-06-14 14:52:08 +00:00
|
|
|
run: pnpm run apidoc
|
2023-10-09 15:47:05 +00:00
|
|
|
|
2023-10-10 23:07:36 +00:00
|
|
|
- name: Code Format
|
2024-06-14 14:52:08 +00:00
|
|
|
run: pnpm run format
|
2023-10-10 23:07:36 +00:00
|
|
|
|
2023-10-09 15:47:05 +00:00
|
|
|
- name: Commit doc
|
|
|
|
run: |
|
|
|
|
git config user.name "GitHub Actions Bot"
|
|
|
|
git config user.email "<>"
|
|
|
|
git commit -a -m "Update API doc"
|
|
|
|
git push
|