git.iko.soy/typeable/elm-ui
on master help sign in
cache node_modules in github actions
5617a5cMatthew Griffith
.github/workflows/tests.yml+12
@@ -24,6 +24,18 @@ jobs:
24 uses: actions/setup-node@v1
24 uses: actions/setup-node@v1
25 with:
25 with:
26 node-version: 10
26 node-version: 10
27+
28+ - name: Cache node modules
29+ uses: actions/cache@v1
30+ env:
31+ cache-name: cache-node-modules
32+ with:
33+ path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
34+ key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
35+ restore-keys: |
36+ ${{ runner.os }}-build-${{ env.cache-name }}-
37+ ${{ runner.os }}-build-
38+ ${{ runner.os }}-
27
39
28 - name: Install
40 - name: Install
29 run: npm install
41 run: npm install