.github/workflows/push.yml
name: Stats
on:
# Trigger the workflow on push to the main branch of pull request
push:
branches:
- main
jobs:
audit:
name: audit
runs-on: ubuntu-latest
steps:
- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14'
- run: npm audit --audit-level=high --production