Skip to content

Commit c7bb1d4

Browse files
committed
Updates
1 parent a71ef1e commit c7bb1d4

4 files changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
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
@@ -39,8 +39,7 @@ jobs:
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

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ jobs:
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: |
@@ -42,4 +48,4 @@ jobs:
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 }}

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "ziorwebdev/easy-file-uploader",
3-
"version": "1.1.8",
43
"authors": [
54
{
65
"name": "Rey C",

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
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",

0 commit comments

Comments
 (0)