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:
|
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
1
.gitignore
vendored
@ -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
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