Skip to content

Commit 0a8d05b

Browse files
committed
Add versioning automation
1 parent 5bac8ed commit 0a8d05b

File tree

2 files changed

+40
-3
lines changed

2 files changed

+40
-3
lines changed

.github/workflows/prepare.yml

Lines changed: 39 additions & 0 deletions
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 dist/
38+
git commit -m "Bump to version ${{ steps.bump.outputs.new_version }}"
39+
git push

README.md

Lines changed: 1 addition & 3 deletions
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

0 commit comments

Comments
 (0)