From df1df830a557d8b3a912f746b6ec60d6473e8f1d Mon Sep 17 00:00:00 2001 From: Chadndrabhan Patel <88890660+cpatel321@users.noreply.github.com> Date: Sat, 20 Jul 2024 08:31:18 +0530 Subject: [PATCH] Create Nodeworkflow.yaml --- .github/workflows/Nodeworkflow.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/Nodeworkflow.yaml diff --git a/.github/workflows/Nodeworkflow.yaml b/.github/workflows/Nodeworkflow.yaml new file mode 100644 index 0000000..970b922 --- /dev/null +++ b/.github/workflows/Nodeworkflow.yaml @@ -0,0 +1,23 @@ +name: Node.js CI/CD + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + - name: Install dependencies + run: npm install + - name: Build and Deploy + run: | + npm run build + node app.js + # echo "Node.js server started!"