Skip to content

Commit 1024077

Browse files
author
Jon Elverkilde
authored
Merge pull request #296 from pusher/fix_version
Ensure version is bumped in source
2 parents d6ba517 + e6fc03a commit 1024077

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,12 @@ jobs:
6464
run: |
6565
export MAJOR=$(echo "${{ env.VERSION }}" | cut -d'.' -f1)
6666
sed -i "s|\"pusher/pusher-php-server\": \"^[0-9]*\.0\"|\"pusher/pusher-php-server\": \"^${MAJOR}.0\"|" README.md
67+
- name: Prepare Pusher.php
68+
run: |
69+
sed -i "s|public static \$VERSION = '[^']*'|public static \$VERSION = '${{ env.VERSION }}'|" src/Pusher.php
6770
- name: Commit changes
6871
run: |
69-
git add CHANGELOG.md README.md
72+
git add CHANGELOG.md README.md src/Pusher.php
7073
git commit -m "Bump to version ${{ env.VERSION }}"
7174
- name: Push
7275
run: git push

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 5.0.3
4+
5+
* [CHANGED] Ensure version in Pusher.php is bumped on release.
6+
37
## 5.0.2
48

59
* [CHANGED] Add release automation actions.

src/Pusher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Pusher implements LoggerAwareInterface, PusherInterface
1414
/**
1515
* @var string Version
1616
*/
17-
public static $VERSION = '5.0.1';
17+
public static $VERSION = '5.0.3';
1818

1919
/**
2020
* @var null|PusherCrypto

0 commit comments

Comments
 (0)