From f8f655a6afc36646e001d4501f0a6f3c99be3ffd Mon Sep 17 00:00:00 2001 From: divlo Date: Thu, 29 Oct 2020 17:03:19 +0100 Subject: [PATCH] ci: fix nodejs caching --- .github/workflows/node.js.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index a15428f..e9dd828 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -16,6 +16,12 @@ jobs: steps: - uses: actions/checkout@v2 + - name: 'Cache dependencies' + uses: actions/cache@v2 + with: + path: | + **/node_modules + key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2.1.2 with: @@ -26,10 +32,3 @@ jobs: - name: 'Run the tests' run: npm test - - - name: 'Cache dependencies' - uses: actions/cache@v2 - with: - path: | - **/node_modules - key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}