mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修改 workflow node_modules 缓存
This commit is contained in:
parent
9e0aa655a0
commit
d2e0231341
14
.github/workflows/build_docker_image.yml
vendored
14
.github/workflows/build_docker_image.yml
vendored
|
@ -51,21 +51,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
|
|
||||||
- name: Cache node_modules
|
- uses: actions/setup-node@v3
|
||||||
id: cache-node-modules
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
cache: 'pnpm'
|
||||||
key: ${{ runner.os }}-node-modules-${{ hashFiles('pnpm-lock.yml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-node-modules-${{ hashFiles('pnpm-lock.yml') }}
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
|
||||||
run: pnpm install
|
|
||||||
|
|
||||||
- name: build front and back
|
- name: build front and back
|
||||||
run: |
|
run: |
|
||||||
|
pnpm install --frozen-lockfile
|
||||||
pnpm build:front
|
pnpm build:front
|
||||||
pnpm build:back
|
pnpm build:back
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user