Skip to content

NPM audit and fix #1174

NPM audit and fix

NPM audit and fix #1174

Workflow file for this run

name: Lint
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Git - Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Node - Setup
uses: actions/setup-node@v3
with:
node-version: 14
- name: NPM - Set cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: NPM - Restore cache
uses: actions/cache@v3
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-npm-lint-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-lint-
- name: NPM - Install dependencies
run: npm ci --prefer-offline=true --audit=false
- name: Nx - Affected - Lint
run: npm run nx -- affected --target=lint --base=last-release