From 8b5cea6345f2edd78021dbdf8a4eb9444e4a8afc Mon Sep 17 00:00:00 2001 From: Jon Elverkilde Date: Sun, 14 Mar 2021 20:40:37 +0000 Subject: [PATCH 1/2] Ensure version is bumped in source --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d68647..bb4784b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,9 +64,12 @@ jobs: run: | export MAJOR=$(echo "${{ env.VERSION }}" | cut -d'.' -f1) sed -i "s|\"pusher/pusher-php-server\": \"^[0-9]*\.0\"|\"pusher/pusher-php-server\": \"^${MAJOR}.0\"|" README.md + - name: Prepare Pusher.php + run: | + sed -i "s|public static \$VERSION = '[^']*'|public static \$VERSION = '${{ env.VERSION }}'|" src/Pusher.php - name: Commit changes run: | - git add CHANGELOG.md README.md + git add CHANGELOG.md README.md src/Pusher.php git commit -m "Bump to version ${{ env.VERSION }}" - name: Push run: git push From e6fc03ae1e6dbee4db74e9972b852648dec94c8a Mon Sep 17 00:00:00 2001 From: Pusher CI Date: Sun, 14 Mar 2021 20:50:38 +0000 Subject: [PATCH 2/2] Bump to version 5.0.3 --- CHANGELOG.md | 4 ++++ src/Pusher.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24ae918..e32bab0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 5.0.3 + +* [CHANGED] Ensure version in Pusher.php is bumped on release. + ## 5.0.2 * [CHANGED] Add release automation actions. diff --git a/src/Pusher.php b/src/Pusher.php index 602296e..7e5b6eb 100755 --- a/src/Pusher.php +++ b/src/Pusher.php @@ -14,7 +14,7 @@ class Pusher implements LoggerAwareInterface, PusherInterface /** * @var string Version */ - public static $VERSION = '5.0.1'; + public static $VERSION = '5.0.3'; /** * @var null|PusherCrypto