Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2 from brickstool/test-ci-semanticrelease-npx
Browse files Browse the repository at this point in the history
Test: Add NPM module caching with Github actions
  • Loading branch information
Samuel Noordhuis authored Aug 1, 2020
2 parents cef10cf + 1feb270 commit 5011ad7
Show file tree
Hide file tree
Showing 3 changed files with 5,467 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Setup Node.js
uses: actions/setup-node@v1
with:
Expand Down
Loading

0 comments on commit 5011ad7

Please sign in to comment.