File tree Expand file tree Collapse file tree 1 file changed +38
-23
lines changed
Expand file tree Collapse file tree 1 file changed +38
-23
lines changed Original file line number Diff line number Diff line change 11name : Coding Standards
2+
23on :
3- pull_request_target :
4- branches :
5- - master
6- push :
7- branches :
8- - master
9- paths-ignore :
10- - ' **.md'
11-
12- # Allows you to run this workflow manually from the Actions tab
13- workflow_dispatch :
4+ push :
5+ branches :
6+ - master
7+ paths-ignore :
8+ - ' **.md'
9+
10+ pull_request :
11+ branches :
12+ - master
13+
14+ workflow_dispatch :
15+
1416jobs :
15- tag :
16- name : Lint and build
17- runs-on : ubuntu-latest
18- steps :
19- - uses : actions/checkout@master
20- - name : Build
21- run : |
22- npm ci || npm i
23- npm install @wordpress/scripts --save-dev --save-exact
24- npx wp-scripts lint-js
25- npx wp-scripts lint-style
26- npx wp-scripts build
17+ lint :
18+ name : Lint and build
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v4
24+
25+ - name : Setup Node
26+ uses : actions/setup-node@v4
27+ with :
28+ node-version : 20
29+ cache : ' npm'
30+
31+ - name : Install dependencies
32+ run : npm ci
33+
34+ - name : Lint JS
35+ run : npx wp-scripts lint-js
36+
37+ - name : Lint CSS
38+ run : npx wp-scripts lint-style
39+
40+ - name : Build
41+ run : npx wp-scripts build
You can’t perform that action at this time.
0 commit comments