Skip to content

Commit a0a70c3

Browse files
authored
Merge pull request #19 from pusher/prepare-release
Add versioning automation
2 parents 6b2b78b + 0f0e2b9 commit a0a70c3

File tree

5 files changed

+52
-4
lines changed

5 files changed

+52
-4
lines changed

.github/pull_request_template.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Description
2+
3+
Add a short description of the change. If this is related to an issue, please add a reference to the issue.
4+
5+
## CHANGELOG
6+
7+
* [CHANGED] Describe your change here. Look at CHANGELOG.md to see the format.

.github/workflows/prepare.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Prepare release
2+
3+
on:
4+
pull_request:
5+
types: [ labeled ]
6+
branches:
7+
- master
8+
9+
jobs:
10+
prepare-release:
11+
name: Prepare release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Get current version
16+
run: |
17+
CURRENT_VERSION=$(npm view @pusher/pusher-websocket-react-native version)
18+
echo "CURRENT_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV
19+
- uses: actions/checkout@v2
20+
with:
21+
repository: pusher/actions
22+
token: ${{ secrets.PUSHER_CI_GITHUB_PRIVATE_TOKEN }}
23+
path: .github/actions
24+
- uses: ./.github/actions/prepare-version-bump
25+
id: bump
26+
with:
27+
current_version: ${{ env.CURRENT_VERSION }}
28+
- uses: actions/setup-node@v2
29+
with:
30+
node-version: 16.x
31+
- run: yarn install
32+
- name: Push
33+
shell: bash
34+
run: |
35+
echo "$(jq '.version = "${{ steps.bump.outputs.new_version }}"' package.json)" > package.json
36+
37+
git add package.json CHANGELOG.md
38+
git commit -m "Bump to version ${{ steps.bump.outputs.new_version }}"
39+
git push

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.0.1
4+
5+
* [ADDED] Add onAuthorizer support to iOS
6+
37
## 1.0.0
48

59
* [CHANGED] Removed unsupported functions from README

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ import {
117117
PusherMember,
118118
PusherChannel,
119119
PusherEvent,
120-
} from 'pusher-websocket-react-native';
120+
} from '@pusher/pusher-websocket-react-native';
121121

122122
const pusher = Pusher.getInstance();
123123

@@ -252,8 +252,6 @@ Called when a member is removed from the presence channel.
252252

253253
#### `onAuthorizer`
254254

255-
> :warning: Currently this feature is not working on iOS. We're working to get this done asap.
256-
257255
When passing the `onAuthorizer()` callback to the `init()` method, this callback is called to request auth information. Learn how
258256
to [generate the correct auth signatures](https://pusher.com/docs/channels/library_auth_reference/auth-signatures/)
259257

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pusher/pusher-websocket-react-native",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Pusher Channels Client for React Native",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

0 commit comments

Comments
 (0)