ci: 为项目添加CI/CD功能 #30
@ -17,6 +17,22 @@ jobs:
|
||||
with:
|
||||
node-version: '22'
|
||||
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
|
||||
run: pnpm install
|
||||
- name: Build project
|
||||
|
||||
Reference in New Issue
Block a user