Update Auto4
Node.js CI/CD / build (push) Successful in 19s

This commit is contained in:
John
2026-09-23 13:20:01 +05:30
parent 1254a0b9d9
commit 54c8082eaa
+6 -15
View File
@@ -15,28 +15,23 @@ jobs:
- name: Check Git
shell: powershell
run: |
git --version
run: git --version
- name: Check Node.js
shell: powershell
run: |
node --version
run: node --version
- name: Check npm
shell: powershell
run: |
npm --version
run: npm --version
- name: Install dependencies
shell: powershell
run: |
npm ci
run: npm ci
- name: Check application
shell: powershell
run: |
node --check app.js
run: node --check app.js
- name: Deploy application
shell: powershell
@@ -47,12 +42,8 @@ jobs:
New-Item -ItemType Directory -Path $deployPath -Force
}
Write-Host "Deploying application..."
Copy-Item -Path ".\*" -Destination $deployPath -Recurse -Force
Write-Host "Restarting Node.js application..."
pm2 restart my-node-app
Write-Host "Deployment completed."
Write-Host "Deployment completed successfully."