Skip to content

Commit

Permalink
Add node_modules caching
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos authored Jan 5, 2024
1 parent c6b5ee0 commit 86e4110
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@ jobs:
- name: Get package.json info
id: info
uses: jaywcjlove/github-action-package@main
- run: npm ci
- name: Cache dependencies
id: cache
uses: actions/cache@v3
with:
path: ./node_modules
key: modules-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build assets
Expand Down

0 comments on commit 86e4110

Please sign in to comment.