From 67b3c986adb5641fc2f191bd8b638fc42dfe2796 Mon Sep 17 00:00:00 2001 From: kusal2000perera-glitch Date: Thu, 12 Mar 2026 18:39:03 +0530 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000000..11b72c1ba30 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: Node.js CI/CD Workflow + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm install + + - name: Start application + run: npm start