ci: 调整workflow
- 启用缓存服务
This commit is contained in:
@ -17,6 +17,22 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
- name: Cache pnpm store
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/.pnpm-store
|
||||||
|
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pnpm-
|
||||||
|
# Nuxt 构建缓存,加快二次构建
|
||||||
|
- name: Cache Nuxt build
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: .nuxt
|
||||||
|
key: ${{ runner.os }}-nuxt-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-nuxt-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
- name: Build project
|
- name: Build project
|
||||||
|
|||||||
Reference in New Issue
Block a user