Skip to content

Commit

Permalink
ci: add ci cache support
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhanglong committed May 12, 2021
1 parent 1060b1e commit 6d68a1f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,19 @@ jobs:
with:
node-version: '12'

- name: ci
- 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: Run ci
run: |
npm install
npm run ci
Expand Down

0 comments on commit 6d68a1f

Please sign in to comment.