Skip to content

[Snyk] Security upgrade express from 4.17.1 to 4.20.0 #89

[Snyk] Security upgrade express from 4.17.1 to 4.20.0

[Snyk] Security upgrade express from 4.17.1 to 4.20.0 #89

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