mirror of
https://github.com/RhenCloud/Cloud-Home.git
synced 2026-01-22 17:39:07 +08:00
feat: 添加 Netlify 配置,调整 Nuxt 配置和 package.json 设置
This commit is contained in:
28
.github/workflows/lint-format.yml
vendored
28
.github/workflows/lint-format.yml
vendored
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user