deps: Apply npm audit fix (#434)

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

No files matched your search

+7 -1
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')