fix(ci): 使用 .nvmrc 和 packageManager 配置版本
All checks were successful
CI / Build Check (pull_request) Successful in 2m21s

- Node.js 版本从 .nvmrc 读取
- pnpm 版本从 package.json 的 packageManager 字段读取
- 移除硬编码的版本号

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
charilezhou
2026-01-22 18:19:41 +08:00
parent c5e08b5632
commit e98c726796
2 changed files with 1 additions and 9 deletions

View File

@@ -5,10 +5,6 @@ on:
branches: branches:
- main - main
env:
PNPM_VERSION: 9
NODE_VERSION: 20
jobs: jobs:
build: build:
name: Build Check name: Build Check
@@ -19,13 +15,11 @@ jobs:
- name: Setup pnpm - name: Setup pnpm
uses: pnpm/action-setup@v4 uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: ${{ env.NODE_VERSION }} node-version-file: '.nvmrc'
- name: Get pnpm store directory - name: Get pnpm store directory
id: pnpm-cache id: pnpm-cache

View File

@@ -6,8 +6,6 @@ on:
- main - main
env: env:
PNPM_VERSION: 9
NODE_VERSION: 20
REGISTRY: gitea.tegical.world REGISTRY: gitea.tegical.world
IMAGE_PREFIX: tegical/seclusion IMAGE_PREFIX: tegical/seclusion