mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
chore: cache dependencies
This commit is contained in:
parent
63253079f1
commit
c542234ea8
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
@ -11,9 +11,27 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install and Build
|
||||
run: |
|
||||
npm install
|
||||
- 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: Build
|
||||
run:
|
||||
npm run build
|
||||
|
||||
- name: Deploy
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -25,7 +25,6 @@ yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
dist
|
||||
package-lock.json
|
||||
lib
|
||||
|
||||
node_modules
|
||||
|
16731
package-lock.json
generated
Normal file
16731
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user