修改GitHub Pages部署流程

This commit is contained in:
wxzhang 2022-08-07 14:27:22 +08:00
parent 16e430a1bb
commit 9fc92f1b1d

View File

@ -13,13 +13,13 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions/cache@v3 #- uses: actions/cache@v3
id: node-modules # id: node-modules
with: # with:
path: node_modules/ # path: node_modules/
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} # key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
restore-keys: | # restore-keys: |
${{ runner.os }}-node-modules- # ${{ runner.os }}-node-modules-
- name: 安装依赖 - name: 安装依赖
if: steps.node-modules.outputs.cache-hit != 'true' if: steps.node-modules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile run: yarn install --frozen-lockfile