feat: 添加 Netlify 配置,调整 Nuxt 配置和 package.json 设置

This commit is contained in:
2025-12-19 21:00:54 +08:00
parent 4d8644629b
commit 1c05fd7b1e
4 changed files with 19 additions and 33 deletions

View File

@@ -17,22 +17,22 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
node-version: "24"
cache: "npm"
- name: Enable corepack and install pnpm
- name: Enable corepack and install npm
run: |
corepack enable
corepack prepare pnpm@latest --activate
corepack prepare npm@latest --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile
run: npm install --frozen-lockfile
- name: Run ESLint
run: pnpm lint
run: npm lint
- name: Run Prettier check
run: pnpm format:check
run: npm format:check
format:
name: Auto-format (eslint --fix)
@@ -48,22 +48,22 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
node-version: "24"
cache: "npm"
- name: Enable corepack and install pnpm
- name: Enable corepack and install npm
run: |
corepack enable
corepack prepare pnpm@latest --activate
corepack prepare npm@latest --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile
run: npm install --frozen-lockfile
- name: Run Prettier --write
run: pnpm format
run: npm format
- name: Run ESLint --fix
run: pnpm lint:fix
run: npm lint:fix
- name: Commit & push fixes
run: |