Skip to content

Update CI workflow to support 'master' branch #1

Update CI workflow to support 'master' branch

Update CI workflow to support 'master' branch #1

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ "master", "main" ] # Change this to your default branch if needed
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: 'lts/*' # Automatically uses the latest LTS version
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build