deps: Apply npm audit fix (#434)

* ci: fix npm audit step
This commit is contained in:
Shohei Ueda
2020-07-31 23:47:10 +09:00
committed by GitHub
parent 0794e07c99
commit 4bf31e4520
2 changed files with 73 additions and 29 deletions

View File

@@ -48,8 +48,14 @@ jobs:
- run: npm ci
- run: npm audit
- name: npm audit
if: startsWith(matrix.os, 'ubuntu-18.04')
run: |
npm audit > ./audit.log || true
if ! [ "$(cat ./audit.log | wc -l)" = 1 ]; then
echo "::warning::$(cat ./audit.log)"
fi
rm ./audit.log
- name: Run prettier
if: startsWith(matrix.os, 'ubuntu-18.04')