diff options
author | Martin Schulze <37703201+martin-schulze-vireso@users.noreply.github.com> | 2021-12-10 02:06:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-10 02:06:15 +0300 |
commit | d8d97112d52d15a2aa194e0fb3243584d2c9b7a5 (patch) | |
tree | 3c649fd960d6f7430be359b2b6bef999cecb3a25 | |
parent | 5497120d6602fba7e9499c8e38244dc3bde9e020 (diff) |
Fix lock not found with setup-node
the default does not work without lock file
-rw-r--r-- | .github/workflows/node.js.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index cd4ae0d..2c379b6 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -17,7 +17,11 @@ jobs: steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 + - uses: actions/cache@v2 with: - cache: 'npm' + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- - run: npm ci - run: npm test |