ci: 修改构建 node 和 pnpm 版本

This commit is contained in:
Gavan
2025-07-14 15:07:50 +08:00
parent 586372f4c5
commit f5a1c92cd8
2 changed files with 25 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ name: Frontend CI/CD
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
- 'v[0-9]+.[0-9]+.[0-9]+*'
paths:
- 'ui/**'
- '.github/workflows/frontend-ci-cd.yml'
@@ -29,12 +29,12 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '20.19.0'
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8
version: 10.12.1
- name: Get version
id: get_version
@@ -130,4 +130,4 @@ jobs:
${{ env.REGISTRY }}/frontend:${{ needs.build.outputs.version }}
${{ env.REGISTRY }}/frontend:latest
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max