Skip to content

Commit

Permalink
build: cache node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
soofstad committed Oct 31, 2023
1 parent 44cc5cb commit 8f157e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ jobs:
- uses: actions/setup-node@v3

# TODO: Cache yarn install
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ./node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./packages/dm-core/package.json')}}-${{ hashFiles('./packages/dm-core-packages/package.json') }}

- name: 'Install dependencies'
run: yarn install
Expand Down

0 comments on commit 8f157e6

Please sign in to comment.