From 4f19f91e334a71d5c0883069aa5ae368095f6a7c Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 5 Jun 2020 17:27:43 +0200 Subject: [PATCH] impl. npm cache --- .github/workflows/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5558ee2..8090bcc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,15 @@ jobs: uses: actions/setup-node@v1 with: node-version: '12.x' + - name: Cache dependencies + id: npm-cache + run: | + echo "::set-output name=dir::$(npm config get cache)" + - uses: actions/cache@v2 + with: + path: ${{ steps.npm-cache.outputs.dir }} + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: ${{ runner.os }}-node - name: Install dependencies run: npm ci - name: Compile CSS