From 5630b4a9240fbbddd72fba93767adbe1485c480f Mon Sep 17 00:00:00 2001 From: Chadndrabhan Patel <88890660+cpatel321@users.noreply.github.com> Date: Sat, 20 Jul 2024 09:03:33 +0530 Subject: [PATCH] Update Nodeworkflow.yaml --- .github/workflows/Nodeworkflow.yaml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/Nodeworkflow.yaml b/.github/workflows/Nodeworkflow.yaml index e85a630..3f19c56 100644 --- a/.github/workflows/Nodeworkflow.yaml +++ b/.github/workflows/Nodeworkflow.yaml @@ -6,18 +6,12 @@ on: - master jobs: - deploy: + build-node: runs-on: ubuntu-latest + container: node:16 steps: - - uses: actions/checkout@v2 - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '18' - - name: Install dependencies - run: npm install - - name: Build and Deploy - run: - node app.js & - background: true - # echo "Node.js server started!" + - run: node --version + - run: npm --version + - uses: actions/checkout@v3 + - run: npm install + - run: node app.js \ No newline at end of file