Skip to content

Commit

Permalink
add cache action to lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JKarlavige committed Nov 20, 2023
1 parent b6f1910 commit e86a5bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,16 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '18.12.0'

- name: Cache Node Modules
uses: actions/cache@v3
id: cache-node-mods
with:
path: node_modules
key: node-modules-cache-v3-${{ hashFiles('package.json', 'package-lock.json') }}

- name: Install Packages
if: steps.cache-node-mods.outputs.cache-hit != 'true'
run: cd website && npm ci

- name: Run ESLint
Expand Down

0 comments on commit e86a5bc

Please sign in to comment.