Skip to content

Commit

Permalink
try to use also cache (same as in runTest)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcompagner committed Jan 17, 2025
1 parent 508da07 commit f8a0bdb
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/buildDraftRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,20 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
cache-dependency-path: ${{ env.COMPONENT_DIR }}/package-lock.json
node-version: '22.x'
cache: 'npm'

- name: Cache + Restore node_modules
uses: actions/cache@v4
with:
# Cache node_modules and Puppeteer chrome
path: |
~/.cache
.angular
node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install and build component
working-directory: ${{ env.COMPONENT_DIR }}
Expand Down

0 comments on commit f8a0bdb

Please sign in to comment.