Skip to content

Commit

Permalink
chore: 🚧 Implement caching for npm packages
Browse files Browse the repository at this point in the history
  • Loading branch information
KoenvanMeijeren committed Nov 25, 2023
1 parent 2ee9870 commit 7fe1118
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/app.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ jobs:
wp-username: ${{ secrets.WP_USERNAME }}
wp-password: ${{ secrets.WP_PASSWORD }}

# See: https://stackoverflow.com/questions/55110729/how-do-i-cache-steps-in-github-actions
- name: Cache NPM dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Install dependencies
run: npm install

Expand Down

0 comments on commit 7fe1118

Please sign in to comment.