File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 vendor
2929 node_modules
3030 dist
31- key : ${{ runner.os }}-build-${{ hashFiles('composer.lock', 'yarn. lock') }}
31+ key : ${{ runner.os }}-build-${{ hashFiles('composer.lock', 'package- lock.json ') }}
3232 restore-keys : |
3333 ${{ runner.os }}-build-
3434
3939 composer install --no-dev --optimize-autoloader
4040
4141 - name : Install Node Dependencies
42- run : yarn install --frozen-lockfile
42+ run : npm ci
4343
4444 - name : Build
45- run : |
46- yarn build
45+ run : npm run build
Original file line number Diff line number Diff line change 2424 - name : Read Package Info
2525 id : vars
2626 run : |
27- echo "PACKAGE_NAME=$(jq -r .name package.json)" >> "$GITHUB_OUTPUT"
28- echo "PACKAGE_VERSION=$(jq -r .version package.json)" >> "$GITHUB_OUTPUT"
27+ # Extract plugin version from PHP file
28+ VERSION=$(grep -i "Version:" easy-file-uploader.php | head -n 1 | sed -E 's/.*Version:[[:space:]]*//')
29+
30+ # Define package name manually (since no longer using package.json)
31+ PACKAGE_NAME="easy-file-uploader"
32+
33+ echo "PACKAGE_NAME=$PACKAGE_NAME" >> "$GITHUB_OUTPUT"
34+ echo "PACKAGE_VERSION=$VERSION" >> "$GITHUB_OUTPUT"
2935
3036 - name : Check for ZIP file
3137 run : |
4248 body : " Release of ${{ steps.vars.outputs.PACKAGE_NAME }} version ${{ steps.vars.outputs.PACKAGE_VERSION }}."
4349 files : " ${{ steps.vars.outputs.PACKAGE_NAME }}.zip"
4450 env :
45- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11{
22 "name" : " ziorwebdev/easy-file-uploader" ,
3- "version" : " 1.1.8" ,
43 "authors" : [
54 {
65 "name" : " Rey C" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " easy-file-uploader" ,
3- "version" : " 1.1.8" ,
43 "repository" : " https://github.com/ZIORWebDev/easy-file-uploader.git" ,
54 "license" : " MIT" ,
65 "main" : " dist/index.js" ,
You can’t perform that action at this time.
0 commit comments