Skip to content

Commit 610a351

Browse files
authored
ci: add lint & build pipeline
1 parent ab6b425 commit 610a351

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/lint-build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Lint & Build
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 18.x
22+
cache: 'npm'
23+
24+
- name: Install dependencies
25+
run: npm install --no-package-lock
26+
27+
- name: Lint
28+
run: npm run lint
29+
30+
- name: Build
31+
run: npm run build

0 commit comments

Comments
 (0)