Skip to content

Commit b898159

Browse files
authored
chore: remove redundant lint check & clean up workflow a bit
1 parent 641aa95 commit b898159

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Build workflow
22
name: Build
33

4-
on: [pull_request, workflow_dispatch]
4+
on:
5+
workflow_dispatch:
6+
pull_request:
7+
push:
8+
branches:
9+
- main
510

611
permissions:
712
contents: read
@@ -10,16 +15,19 @@ jobs:
1015
build:
1116
runs-on: ubuntu-latest
1217
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v4
15-
- name: Setup Node
18+
- uses: actions/checkout@v4
19+
20+
- name: Use Node.js 20.x
1621
uses: actions/setup-node@v4
1722
with:
18-
node-version: latest
23+
node-version: 20.x
1924
cache: 'npm'
20-
- run: npm ci
25+
26+
- name: Npm Install
27+
run: npm install
28+
29+
- name: Verify build
2130
- run: npm run build
22-
- run: npm run lint
2331

2432
lint:
2533
timeout-minutes: 5
@@ -32,10 +40,10 @@ jobs:
3240
with:
3341
node-version: 20.x
3442

35-
- name: Npm Install
43+
- name: NPM install
3644
run: npm install
3745

38-
- name: Lint
46+
- name: Eslint check format
3947
run: npm run lint
4048

4149
format:
@@ -49,8 +57,8 @@ jobs:
4957
with:
5058
node-version: 20.x
5159

52-
- name: Npm Install
60+
- name: NPM install
5361
run: npm install
5462

55-
- name: Check Format
63+
- name: Prettier check format
5664
run: npm run format:check

0 commit comments

Comments
 (0)