From dd22d02945e51d7f338e06b11edc93eeefb4f23b Mon Sep 17 00:00:00 2001 From: John Date: Wed, 23 Sep 2026 11:02:16 +0530 Subject: [PATCH] Update Auto --- .github/workflows/build.yml | 21 ++++++--------------- app.js | 3 ++- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8e69ffb..78b997c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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." \ No newline at end of file + Write-Host "Deployment completed successfully." diff --git a/app.js b/app.js index dcf6f95..b9c9b1a 100644 --- a/app.js +++ b/app.js @@ -14,7 +14,8 @@ const server = http.createServer((req, res) => { My Node App -

Hello from Node.js!

+

Hello from Node.js!

+

CI-CD

Welcome, This application is running on Windows 10.