File tree 4 files changed +50
-0
lines changed
4 files changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ !build/
2
+ !vendor/
Original file line number Diff line number Diff line change 18
18
- uses : actions/checkout@v3
19
19
with :
20
20
fetch-depth : 2
21
+
22
+ - name : Use Node.js 18
23
+ uses : actions/setup-node@v2
24
+ with :
25
+ node-version : ' 18'
26
+
27
+ - name : Build Project
28
+ run : |
29
+ npm install
30
+ npm run build --if-present
31
+
32
+ - name : Setup PHP
33
+ uses : shivammathur/setup-php@v2
34
+ with :
35
+ php-version : ' 7.4'
36
+ tools : composer:v2
37
+
38
+ - name : Install Composer dependencies
39
+ run : composer install --no-dev --optimize-autoloader
40
+
21
41
- name : FTP-Deploy-Action
22
42
uses :
Automattic/[email protected]
23
43
with :
Original file line number Diff line number Diff line change 20
20
- uses : actions/checkout@v3
21
21
with :
22
22
fetch-depth : 2
23
+
24
+ - name : Use Node.js 18
25
+ uses : actions/setup-node@v2
26
+ with :
27
+ node-version : ' 18'
28
+
29
+ - name : Build Project
30
+ run : |
31
+ npm install
32
+ npm run build --if-present
33
+
34
+ - name : Setup PHP
35
+ uses : shivammathur/setup-php@v2
36
+ with :
37
+ php-version : ' 7.4'
38
+ tools : composer:v2
39
+
40
+ - name : Install Composer dependencies
41
+ run : composer install --no-dev --optimize-autoloader
42
+
23
43
- name : FTP-Deploy-Action
24
44
uses :
Automattic/[email protected]
25
45
with :
Original file line number Diff line number Diff line change 8
8
"phpcompatibility/phpcompatibility-wp" : " *"
9
9
},
10
10
"scripts" : {
11
+ "build" : [
12
+ " composer update --no-dev" ,
13
+ " composer dump-autoload -o --no-dev"
14
+ ],
15
+ "dev" : [
16
+ " composer update" ,
17
+ " composer dump-autoload"
18
+ ],
11
19
"lint" : " ./vendor/bin/phpcs --standard=phpcs.xml -n"
12
20
},
13
21
"autoload" : {
You can’t perform that action at this time.
0 commit comments