[Snyk] Security upgrade express from 4.17.1 to 4.20.0 #89
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |