From 42354161ea026037ceb9672353002881cd2f9b4b Mon Sep 17 00:00:00 2001 From: mricoul Date: Mon, 12 Jan 2026 18:09:10 +0100 Subject: [PATCH 1/3] fix: enhances release workflow and distribution files Refines the release workflow by incorporating Node.js setup and JavaScript asset building steps, ensuring up-to-date assets are included in releases. Updates .distignore to exclude development-related files and directories, ensuring a cleaner distribution package. --- .distignore | 26 ++++++++++++++++++-------- .github/workflows/release.yml | 13 +++++++++++++ 2 files changed, 31 insertions(+), 8 deletions(-) diff --git a/.distignore b/.distignore index 3894155..5d38460 100644 --- a/.distignore +++ b/.distignore @@ -1,27 +1,37 @@ +# Directories /.git /.github -/.wordpress-org +/.vscode /node_modules /src +/tests +# Configuration files .distignore .editorconfig .gitattributes .gitignore .plugin-data .wp-env.json -CHANGELOG.md -composer.json -composer.lock grumphp.yml -LICENSE.md -package.json -package-lock.json phpcs.xml.dist phpunit.xml.dist psalm.xml.dist -README.md + +# Dependency management +composer.json +composer.lock +package.json +package-lock.json + +# Documentation CHANGELOG.md CONTRIBUTING.md +README.md + +# Development files webpack.config.js yarn.lock +*.log +*.map +.DS_Store diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7bc4237..4bd4148 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,6 +45,19 @@ jobs: php-version: 8.3 - run: composer install --prefer-dist --no-dev -o --ignore-platform-reqs + - id: setup-node + name: "Setup Node.js" + uses: actions/setup-node@v3 + with: + node-version: '20' + cache: 'npm' + + - id: build-js + name: "Build JavaScript assets" + run: | + npm ci + npm run build + - id: commit-and-push name: "Commit and push new TAG" run: | From c9f742f3d2f6b720acd1bb6f97826342e5f05241 Mon Sep 17 00:00:00 2001 From: mricoul Date: Mon, 12 Jan 2026 18:09:50 +0100 Subject: [PATCH 2/3] chore: bump version --- .plugin-data | 2 +- beapi-acf-palette.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.plugin-data b/.plugin-data index 2fcc105..0be4e2c 100644 --- a/.plugin-data +++ b/.plugin-data @@ -1,4 +1,4 @@ { - "version": "1.1.0", + "version": "1.1.1", "slug": "beapi-acf-palette" } diff --git a/beapi-acf-palette.php b/beapi-acf-palette.php index c44cc5b..d9005c8 100644 --- a/beapi-acf-palette.php +++ b/beapi-acf-palette.php @@ -1,7 +1,7 @@ Date: Mon, 12 Jan 2026 18:11:16 +0100 Subject: [PATCH 3/3] docs: update change log --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fa1f21..bdc6cef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Nothing yet. +## [1.1.1] - 2026-01-12 + +- JavaScript build step in release workflow with `npm run build` + ## [1.1.0] - 2026-01-12 ### Added