chore: cache dependencies

This commit is contained in:
yanglbme 2020-11-25 09:47:08 +08:00
parent 63253079f1
commit c542234ea8
3 changed files with 16753 additions and 5 deletions

View File

@ -11,9 +11,27 @@ jobs:
with: with:
persist-credentials: false persist-credentials: false
- name: Install and Build - name: Set up node
run: | uses: actions/setup-node@v2-beta
npm install with:
node-version: '12'
check-latest: true
- name: Cache node modules
uses: actions/cache@v2
id: cache
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm install
- name: Build
run:
npm run build npm run build
- name: Deploy - name: Deploy

1
.gitignore vendored
View File

@ -25,7 +25,6 @@ yarn-debug.log*
yarn-error.log* yarn-error.log*
dist dist
package-lock.json
lib lib
node_modules node_modules

16731
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff