Skip to content

Commit 51250f0

Browse files
Merge pull request #1561 from GetStream/develop
ci: introduce beta release workflow
2 parents 3c6446c + 4efee7f commit 51250f0

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- master
66
- main
7+
- beta
78

89
jobs:
910
release:
@@ -24,4 +25,4 @@ jobs:
2425
env:
2526
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2627
GH_TOKEN: ${{ secrets.GH_TOKEN }}
27-
run: yarn semantic-release --branches master main
28+
run: yarn semantic-release

.releaserc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
2+
"branches": [
3+
"main",
4+
"master",
5+
{
6+
"name": "beta",
7+
"prerelease": true
8+
}
9+
],
210
"plugins": [
311
"@semantic-release/commit-analyzer",
412
"@semantic-release/release-notes-generator",

playwright.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { PlaywrightTestConfig } from '@playwright/test';
33
// https://playwright.dev/docs/test-configuration
44
const config: PlaywrightTestConfig = {
55
testDir: './e2e',
6+
timeout: 15 * 1000,
67
use: {
78
headless: true,
89
viewport: { height: 920, width: 1280 },
@@ -13,6 +14,7 @@ const config: PlaywrightTestConfig = {
1314
reuseExistingServer: !process.env.CI,
1415
timeout: 120 * 1000,
1516
},
17+
workers: 1,
1618
};
1719

1820
export default config;

src/stories/utils.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ export const ConnectedUser = <SCG extends DefaultGenerics = StreamChatGenerics>(
4141
useEffect(() => {
4242
const c = new StreamChat<SCG>(apiKey);
4343

44-
c.connectUser({ id: userId }, token).then(() => setClient(c));
45-
4644
const handleConnectionChange = ({ online = false }: Event) => {
4745
if (!online) console.log('connection lost');
4846
setClient(c);
4947
};
5048

5149
c.on('connection.changed', handleConnectionChange);
5250

51+
c.connectUser({ id: userId }, token);
52+
5353
return () => {
5454
c.off('connection.changed', handleConnectionChange);
5555
c.disconnectUser().then(() => console.log('connection closed'));

0 commit comments

Comments
 (0)