Commit 8f3a592a authored by yanglbme's avatar yanglbme

chore: update docs workflow

parent cc891c2c
...@@ -19,19 +19,17 @@ jobs: ...@@ -19,19 +19,17 @@ jobs:
with: with:
node-version: "14" node-version: "14"
- name: Cache dependencies - name: Cache node modules
uses: actions/cache@v2 uses: actions/cache@v2
id: yarn-cache id: cache
with: with:
path: | path: node_modules
**/node_modules key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-yarn- ${{ runner.os }}-node-
- name: Install dependencies - name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true' if: steps.cache.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile run: npm install
- name: Build VuePress site - name: Build VuePress site
run: yarn docs:build run: yarn docs:build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment