Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/Pusher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down