Skip to content

Commit 673cddf

Browse files
authored
Add Node.js CI workflow in GitHub Actions
1 parent 730ab19 commit 673cddf

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ] # Change this to your default branch if needed
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Use Node.js LTS
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 'lts/*' # Automatically uses the latest LTS version
18+
19+
- name: Install dependencies
20+
run: npm install
21+
22+
- name: Build project
23+
run: npm run build

0 commit comments

Comments
 (0)