Skip to content

[Snyk] Security upgrade swagger-ui-express from 4.1.4 to 4.2.0 #80

[Snyk] Security upgrade swagger-ui-express from 4.1.4 to 4.2.0

[Snyk] Security upgrade swagger-ui-express from 4.1.4 to 4.2.0 #80

name: Generate Docs
on:
pull_request:
branches: [master]
jobs:
serve-api-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{github.head_ref}}
- uses: actions/setup-node@v1
with:
node-version: '12'
- name: Install Dependencies
run: npm install
- name: Build API docs
run: |
npm install swagger-jsdoc --save -g
swagger-jsdoc -d ./server/api/routes/swaggerDef.js ./server/api/routes/main.js -o ./docs/swagger.yaml
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: update api docs