fix(ci): 使用 .nvmrc 和 packageManager 配置版本
All checks were successful
CI / Build Check (pull_request) Successful in 2m21s
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:
@@ -5,10 +5,6 @@ on:
|
||||
branches:
|
||||
- main
|
||||
|
||||
env:
|
||||
PNPM_VERSION: 9
|
||||
NODE_VERSION: 20
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Check
|
||||
@@ -19,13 +15,11 @@ jobs:
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: ${{ env.PNPM_VERSION }}
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
- name: Get pnpm store directory
|
||||
id: pnpm-cache
|
||||
|
||||
@@ -6,8 +6,6 @@ on:
|
||||
- main
|
||||
|
||||
env:
|
||||
PNPM_VERSION: 9
|
||||
NODE_VERSION: 20
|
||||
REGISTRY: gitea.tegical.world
|
||||
IMAGE_PREFIX: tegical/seclusion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user