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

@ -10,12 +10,30 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
persist-credentials: false persist-credentials: false
- name: Set up node
uses: actions/setup-node@v2-beta
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: Install and Build - name: Build
run: | run:
npm install
npm run build npm run build
- name: Deploy - name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1 uses: JamesIves/github-pages-deploy-action@3.7.1
with: with:

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