From fa7dc48e03da267564b76bb6bc4550e891ce90a0 Mon Sep 17 00:00:00 2001 From: Fabian Todt Date: Thu, 14 Mar 2024 16:30:13 +0100 Subject: [PATCH 1/3] DEV: Fix node version in github actions --- .github/workflows/deploy.yml | 90 ++++++++++++++++++------------------ 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 947f3ae..f4864cc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,55 +1,55 @@ name: Deploy to WordPress.org on: - release: - types: [published] + release: + types: [ published ] jobs: - new-release: - name: New release - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 + new-release: + name: New release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: 16 + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: 20 - - name: Get npm cache directory - id: npm-cache - run: | - echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT - - uses: actions/cache@v2 - with: - path: ${{ steps.npm-cache.outputs.dir }} - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - name: Install Node.js dependencies - run: npm ci + - name: Get npm cache directory + id: npm-cache + run: | + echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT + - uses: actions/cache@v2 + with: + path: ${{ steps.npm-cache.outputs.dir }} + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install Node.js dependencies + run: npm ci - - name: Build JS/CSS assets - run: | - npm run build + - name: Build JS/CSS assets + run: | + npm run build - - name: WordPress Plugin Deploy - id: deploy - uses: 10up/action-wordpress-plugin-deploy@1.5.0 - with: - generate-zip: true - env: - SVN_USERNAME: ${{ secrets.SVN_USERNAME }} - SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} - SLUG: good-slider + - name: WordPress Plugin Deploy + id: deploy + uses: 10up/action-wordpress-plugin-deploy@1.5.0 + with: + generate-zip: true + env: + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SLUG: good-slider - - name: Upload release asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ${{github.workspace}}/${{ github.event.repository.name }}.zip - asset_name: ${{ github.event.repository.name }}.zip - asset_content_type: application/zip + - name: Upload release asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ${{github.workspace}}/${{ github.event.repository.name }}.zip + asset_name: ${{ github.event.repository.name }}.zip + asset_content_type: application/zip From 09d174e111435b990f42d5e0715b97795d7662e1 Mon Sep 17 00:00:00 2001 From: Fabian Todt Date: Thu, 14 Mar 2024 16:37:59 +0100 Subject: [PATCH 2/3] DEV: Add more files to distignore --- .distignore | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.distignore b/.distignore index f8289f5..73f76fa 100644 --- a/.distignore +++ b/.distignore @@ -14,4 +14,9 @@ /node_modules package.json package-lock.json -README.md \ No newline at end of file +README.md +webpack.config.js +composer.json +composer.lock +.prettierrc.js +phpcs.xml \ No newline at end of file From d0b0719835067af5e47520434b41fc33db5f0933 Mon Sep 17 00:00:00 2001 From: Fabian Todt Date: Thu, 14 Mar 2024 16:39:37 +0100 Subject: [PATCH 3/3] v3.0.1 --- good-slider.php | 2 +- languages/good-slider.pot | 4 ++-- package.json | 2 +- readme.txt | 6 +++++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/good-slider.php b/good-slider.php index a10d933..63ded12 100644 --- a/good-slider.php +++ b/good-slider.php @@ -4,7 +4,7 @@ * Description: A simple and extendable slider block using Swiper * Requires at least: 6.4 * Requires PHP: 8.1 - * Version: 3.0.0 + * Version: 3.0.1 * Author: GoodWP * Author URI: https://goodwp.io * License: GPL-3.0-or-later diff --git a/languages/good-slider.pot b/languages/good-slider.pot index b7733f3..bc51874 100644 --- a/languages/good-slider.pot +++ b/languages/good-slider.pot @@ -2,14 +2,14 @@ # This file is distributed under the GPL-3.0-or-later. msgid "" msgstr "" -"Project-Id-Version: Good Slider 3.0.0\n" +"Project-Id-Version: Good Slider 3.0.1\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/good-slider\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-03-14T15:25:48+00:00\n" +"POT-Creation-Date: 2024-03-14T15:38:39+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.10.0\n" "X-Domain: good-slider\n" diff --git a/package.json b/package.json index 130097a..275f6da 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "good-slider", - "version": "3.0.0", + "version": "3.0.1", "description": "A simple and extendable slider block using Swiper", "author": "GoodWP", "license": "GPL-3.0-or-later", diff --git a/readme.txt b/readme.txt index a60d014..659f727 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: block, slider, swiper Requires at least: 6.2 Requires PHP: 8.1 Tested up to: 6.5 -Stable tag: 3.0.0 +Stable tag: 3.0.1 License: GPL-3.0-or-later License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -74,6 +74,10 @@ We are working on adding more UI controls but also providing the possibility for == Changelog == += 3.0.1 (2024-03-14) = + +- Dev: Quick fix to remove some development files from the distributed plugin. + = 3.0.0 (2024-03-14) = !! This version includes breaking changes !!