primevue-mirror/.github/workflows/generate_api_doc.yml

43 lines
864 B
YAML
Raw Normal View History

2023-03-08 08:23:47 +00:00
name: Generate API DOC
on:
push:
branches: [ master ]
paths:
- '**/**/*.d.ts'
2023-03-27 14:41:55 +00:00
- '/api-generator/build-apidoc.js'
2023-03-08 08:23:47 +00:00
permissions:
contents: write
jobs:
build:
2023-04-28 14:23:46 +00:00
if: github.repository == 'primefaces/primevue' && github.ref == 'refs/heads/master'
2023-03-08 08:23:47 +00:00
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
run: npm install
- name: Generate api doc
run: npm run apidoc
- name: Commit doc
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git commit -a -m "Update API doc"
git push