File tree Expand file tree Collapse file tree
MaiChartManager/Front/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ jobs:
1313 runs-on : self-hosted
1414
1515 steps :
16+ - run : git config --global core.longPaths true
1617 - name : Checkout
1718 uses : actions/checkout@v4
1819 with :
1920 fetch-depth : 0
2021 submodules : recursive
21- clean : false
2222
2323 - name : Checkout Assets
2424 uses : clansty/checkout@main
4646 - name : Install Frontend Dependencies
4747 shell : powershell
4848 run : |
49- corepack enable
5049 Push-Location MaiChartManager\Front
51- pnpm install
50+ corepack install
51+ corepack pnpm install
52+ if ($LASTEXITCODE -ne 0) { throw "pnpm install failed with exit code $LASTEXITCODE" }
5253 Pop-Location
5354
5455
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import './global.sass';
1313
1414createApp ( App )
1515 . use ( router )
16- . use ( i18n )
16+ . use ( i18n as any )
1717 . use ( posthog )
1818 . use ( sentry )
1919 . mount ( '#app' ) ;
Original file line number Diff line number Diff line change @@ -103,7 +103,8 @@ try {
103103Write-Host " Building Frontend..." - ForegroundColor Cyan
104104Push-Location " $ProjectRoot \MaiChartManager\Front"
105105try {
106- cmd / c pnpm build
106+ pnpm build
107+ if ($LASTEXITCODE -ne 0 ) { throw " Frontend build failed with exit code $LASTEXITCODE " }
107108} finally {
108109 Pop-Location
109110}
@@ -119,10 +120,13 @@ try {
119120 Write-Host " Using Configuration: $ConfigName " - ForegroundColor Yellow
120121
121122 dotnet publish - p:Configuration= $ConfigName
123+ if ($LASTEXITCODE -ne 0 ) { throw " dotnet publish failed with exit code $LASTEXITCODE " }
122124} finally {
123125 Pop-Location
124126}
125127
128+ Copy-Item " $ProjectRoot \MaiChartManager\wwwroot" " $PSScriptRoot \Pack\wwwroot" - Recurse - Force
129+
126130# ==========================================
127131# 6. 准备打包目录
128132# ==========================================
You can’t perform that action at this time.
0 commit comments