Update generate_api_doc.yml
parent
c91cd2c24b
commit
d013147396
|
@ -1,42 +1,48 @@
|
||||||
name: Generate API DOC
|
name: Generate API DOC
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [master]
|
||||||
paths:
|
paths:
|
||||||
- '**/**/*.d.ts'
|
- '**/**/*.d.ts'
|
||||||
- '/api-generator/build-apidoc.js'
|
- '/api-generator/build-apidoc.js'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
if: github.repository == 'primefaces/primevue' && github.ref == 'refs/heads/master'
|
if: github.repository == 'primefaces/primevue' && github.ref == 'refs/heads/master'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [16.x]
|
node-version: [16.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install node packages
|
- name: Install node packages
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: Generate api doc
|
- name: Generate api doc
|
||||||
run: npm run apidoc
|
run: npm run apidoc
|
||||||
|
|
||||||
- name: Commit doc
|
- name: Code Format
|
||||||
run: |
|
run: npm run format:check
|
||||||
git config user.name "GitHub Actions Bot"
|
|
||||||
git config user.email "<>"
|
- name: Lint
|
||||||
git commit -a -m "Update API doc"
|
run: npm run lint
|
||||||
git push
|
|
||||||
|
- name: Commit doc
|
||||||
|
run: |
|
||||||
|
git config user.name "GitHub Actions Bot"
|
||||||
|
git config user.email "<>"
|
||||||
|
git commit -a -m "Update API doc"
|
||||||
|
git push
|
||||||
|
|
Loading…
Reference in New Issue