Skip to content

Commit 3e4ecdc

Browse files
committed
Add ci checks
1 parent c7f4089 commit 3e4ecdc

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Deploy to gh-pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
pages: write
12+
id-token: write
13+
14+
jobs:
15+
deploy:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v3
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 22
26+
27+
- name: Install Git
28+
run: sudo apt-get install git -y
29+
30+
- name: Switch to gh-pages branch
31+
run: |
32+
git config user.name "github-actions[bot]"
33+
git config user.email "github-actions[bot]@users.noreply.github.com"
34+
35+
- name: Install dependencies
36+
run: npm install
37+
38+
- name: Eslint checks
39+
run: npm run eslint
40+
41+
- name: Build project
42+
run: npm run build
43+

0 commit comments

Comments
 (0)