Skip to content

Commit 5f2bd55

Browse files
3.6.12 - improved release version check (#92)
* release: 3.6.10 * 3.6.11 - added source header check before release * 3.6.11 - updated in readme and added changelog * updated plug-in header to 3.6.11 * Move to 3.6.12 * add fix to changelog for 3.6.12 --------- Co-authored-by: Sertii <36940685+Sreini@users.noreply.github.com>
1 parent 4478f53 commit 5f2bd55

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

bin/check-version

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ TAG_VERSION="${1:-${GITHUB_REF#refs/tags/}}"
99

1010
# Stable tag from readme.txt
1111
README_VERSION=$(grep -m 1 "^Stable tag:" readme.txt | awk '{print $3}')
12+
SOURCE_VERSION=$(grep "Version:" tiny-compress-images.php | head -n 1 | cut -d ':' -f 2 | xargs)
1213

1314
if [ "$TAG_VERSION" != "$README_VERSION" ]; then
1415
echo "Error: Tag: $TAG_VERSION, readme.txt: $README_VERSION"
1516
exit 1
1617
fi
1718

19+
if [ "$TAG_VERSION" != "$SOURCE_VERSION" ]; then
20+
echo "Error: Tag: $TAG_VERSION, tiny-compress-images.php: $SOURCE_VERSION"
21+
exit 1
22+
fi
23+
1824
echo "Version matches git release"

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://tinypng.com/
44
Tags: compress images, compression, image size, page speed, performance
55
Requires at least: 4.0
66
Tested up to: 6.9
7-
Stable tag: 3.6.11
7+
Stable tag: 3.6.12
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -174,6 +174,10 @@ A: You can upgrade to a paid account by adding your *Payment details* on your [a
174174
A: When the conversion feature is enabled (to convert images to AVIF or WebP), each image will use double the number of credits: one for compression and one for format conversion.
175175

176176
== Changelog ==
177+
= 3.6.12 =
178+
* chore: updated tiny package to 1.6.4
179+
* fix: resolved warning when img tag was missing src attribute
180+
177181
= 3.6.9 =
178182
* fix: prevent picture element on product pages (WooCommerce)
179183

tiny-compress-images.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugin Name: TinyPNG - JPEG, PNG & WebP image compression
44
* Description: Speed up your website. Optimize your JPEG, PNG, and WebP images automatically with TinyPNG.
5-
* Version: 3.6.11
5+
* Version: 3.6.12
66
* Author: TinyPNG
77
* Author URI: https://tinypng.com
88
* Text Domain: tiny-compress-images

0 commit comments

Comments
 (0)