File tree Expand file tree Collapse file tree 1 file changed +19
-11
lines changed
Expand file tree Collapse file tree 1 file changed +19
-11
lines changed Original file line number Diff line number Diff line change 11# Build workflow
22name : Build
33
4- on : [pull_request, workflow_dispatch]
4+ on :
5+ workflow_dispatch :
6+ pull_request :
7+ push :
8+ branches :
9+ - main
510
611permissions :
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 :
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
You can’t perform that action at this time.
0 commit comments