File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,9 +75,7 @@ Thumbs.db
7575*.*.map
7676
7777# Build related files
78- src
79- /src/js
80- /src/css
81- lib
78+ /src
79+ /build
8280development.md
8381blueprint.json
Original file line number Diff line number Diff line change 1818 - name : Set plugin slug
1919 run : echo "PLUGIN_SLUG=insert-codes" >> $GITHUB_ENV
2020
21- - name : Build plugin
21+ - name : Setup PHP
22+ uses : shivammathur/setup-php@v2
23+ with :
24+ php-version : ' 8.0'
25+
26+ - name : Setup Node.js
27+ uses : actions/setup-node@v4
28+ with :
29+ node-version : ' 20'
30+ cache : ' npm'
31+
32+ - name : Install Composer dependencies
33+ run : composer install --no-dev --no-scripts --optimize-autoloader
34+
35+ - name : Install npm dependencies and build
36+ run : |
37+ npm install
38+ npm run build
39+
40+ - name : Prepare plugin for distribution
2241 run : |
2342 mkdir build
2443 rsync -av --exclude-from=.distignore ./ build/${{ env.PLUGIN_SLUG }}
You can’t perform that action at this time.
0 commit comments