Skip to content

Commit

Permalink
Speed up audit by avoiding install dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 18, 2024
1 parent 9b9e80d commit 59d97d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/init-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ runs:
node-version-file: .node-version
cache: ${{ inputs.cache && 'pnpm' || '' }}
- name: Install pnpm dependencies
if: ${{ inputs.install != 'false' }}
shell: bash
run: pnpm install --ignore-scripts ${{ inputs.install }}
2 changes: 2 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ jobs:
uses: actions/[email protected]
- name: Initialize Node.js
uses: ./.github/actions/init-node
with:
install: false
- name: Run audit
run: node --run test:audit

0 comments on commit 59d97d6

Please sign in to comment.