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:37:46 +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:
|
|
|
|
node-version: [16.x]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
cache: 'npm'
|
|
|
|
|
|
|
|
- name: Install node packages
|
2024-06-13 10:37:46 +00:00
|
|
|
run: npm install
|
2023-10-09 15:47:05 +00:00
|
|
|
|
|
|
|
- name: Generate api doc
|
|
|
|
run: npm run apidoc
|
|
|
|
|
2023-10-10 23:07:36 +00:00
|
|
|
- name: Code Format
|
|
|
|
run: npm run format
|
|
|
|
|
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
|