[CLAUDE] CICD: use powershell (5.1) instead of pwsh (7) - not installed on VPS
Some checks are pending
Deploy SOLUTION_ERP / build-deploy (push) Waiting to run

This commit is contained in:
pqhuy1987
2026-04-21 14:31:35 +07:00
parent 5df883de00
commit 57a027501a

View File

@ -23,20 +23,20 @@ jobs:
- uses: actions/checkout@v4
- name: Add dotnet + node to PATH
shell: pwsh
shell: powershell
run: |
echo "C:\Program Files\dotnet" >> $env:GITHUB_PATH
echo "C:\Program Files\nodejs" >> $env:GITHUB_PATH
- name: Show tool versions
shell: pwsh
shell: powershell
run: |
& 'C:\Program Files\dotnet\dotnet.exe' --version
& 'C:\Program Files\nodejs\node.exe' --version
& 'C:\Program Files\nodejs\npm.cmd' --version
- name: Build backend
shell: pwsh
shell: powershell
run: |
& 'C:\Program Files\dotnet\dotnet.exe' restore SolutionErp.slnx
& 'C:\Program Files\dotnet\dotnet.exe' publish src/Backend/SolutionErp.Api/SolutionErp.Api.csproj `
@ -46,14 +46,14 @@ jobs:
--self-contained false
- name: Build fe-admin
shell: pwsh
shell: powershell
working-directory: fe-admin
run: |
& 'C:\Program Files\nodejs\npm.cmd' ci
& 'C:\Program Files\nodejs\npm.cmd' run build
- name: Build fe-user
shell: pwsh
shell: powershell
working-directory: fe-user
run: |
& 'C:\Program Files\nodejs\npm.cmd' ci
@ -61,7 +61,7 @@ jobs:
- name: Deploy to IIS (local)
if: github.ref == 'refs/heads/main'
shell: pwsh
shell: powershell
env:
JWT_SECRET: ${{ secrets.JWT_SECRET }}
DB_CONNECTION: ${{ secrets.DB_CONNECTION }}
@ -110,7 +110,7 @@ jobs:
- name: Smoke test
if: github.ref == 'refs/heads/main'
shell: pwsh
shell: powershell
run: |
Start-Sleep -Seconds 10
try {