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

53 lines
1.4 KiB
YAML
Raw Permalink Normal View History

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-28 07:27:22 +00:00
- 'packages/primevue/src/**/*.d.ts'
- 'packages/primevue/src/**/style/*.js'
- 'packages/themes/src/presets/**/**/index.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-28 07:27:22 +00:00
node-version: [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:
2024-10-10 08:00:48 +00:00
version: 9.6.0
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-28 07:27:22 +00:00
run: pnpm run build: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