ci: 为项目添加CI/CD功能 #30

Manually merged
remilia merged 18 commits from ci/gitea-actions into master 2025-09-26 17:14:03 +08:00
Showing only changes of commit cbbae112dc - Show all commits

View File

@ -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