Skip to content

Commit f5dfcef

Browse files
authored
Merge pull request #3331 from GetStream/develop
Next Release
2 parents 3eb3bef + f9637b3 commit f5dfcef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3714
-2209
lines changed

.github/workflows/changelog-preview.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ on:
99
jobs:
1010
generate_changelog_preview:
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [ 24.x ]
1215
steps:
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: ${{ matrix.node-version }}
1320
- uses: actions/checkout@v2
1421
with:
1522
ref: develop
@@ -45,7 +52,7 @@ jobs:
4552
4653
echo "Changelog file ready! Setting up outputs"
4754
CHANGELOG_PREVIEW=$(cat NEXT_RELEASE_CHANGELOG.md)
48-
55+
4956
CHANGELOG_PREVIEW_ESCAPED="${CHANGELOG_PREVIEW//'%'/'%25'}"
5057
CHANGELOG_PREVIEW_ESCAPED="${CHANGELOG_PREVIEW_ESCAPED//$'\n'/'%0A'}"
5158
CHANGELOG_PREVIEW_ESCAPED="${CHANGELOG_PREVIEW_ESCAPED//$'\r'/'%0D'}"

.github/workflows/check-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
node-version: [22.x]
16+
node-version: [24.x]
1717
steps:
1818
- uses: actions/checkout@v3
1919
with:

.github/workflows/next-release.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,60 @@ on:
44
push:
55
branches:
66
- main
7+
- develop
8+
9+
permissions:
10+
id-token: write # for OIDC / npm provenance if you use it
11+
actions: write # if you dispatch other workflows
12+
contents: write # commits / tags / merge-back
713

814
jobs:
9-
publish-release:
15+
publish:
1016
runs-on: ubuntu-latest
1117
strategy:
1218
matrix:
13-
node-version: [22.x]
19+
node-version: [24.x]
20+
1421
steps:
1522
- uses: actions/checkout@v2
1623
with:
17-
# pulls all commits (needed for semantic release to correctly version)
18-
fetch-depth: '0'
19-
# pulls all tags (needed for semantic release to correctly version)
20-
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
24+
fetch-depth: "0"
25+
26+
- name: Fetch tags
27+
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
28+
2129
- name: Use Node.js ${{ matrix.node-version }}
2230
uses: actions/setup-node@v4
2331
with:
2432
node-version: ${{ matrix.node-version }}
25-
registry-url: 'https://registry.npmjs.org'
33+
registry-url: "https://registry.npmjs.org"
34+
2635
- name: Prepare git
2736
run: |
28-
git config --global user.name 'stream-ci-bot'
37+
git config --global user.name 'stream-ci-bot'
2938
git config --global user.email '[email protected]'
39+
3040
- name: Install && Build - SDK and Sample App
3141
uses: ./.github/actions/install-and-build-sdk
42+
3243
- name: Lint
3344
run: yarn lerna-workspaces run lint
34-
- name: Publish Release
45+
46+
- name: Test
47+
if: github.ref == 'refs/heads/develop'
48+
run: yarn test:coverage
49+
50+
- name: Publish Next Release (develop)
51+
if: github.ref == 'refs/heads/develop'
52+
run: |
53+
GITHUB_SHORT_SHA="$(git rev-parse --short $GITHUB_SHA)" yarn release-next
54+
55+
- name: Publish Release (main)
56+
if: github.ref == 'refs/heads/main'
3557
run: yarn release
36-
env:
37-
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
38-
- name: Merge back changes
58+
59+
- name: Merge back changes (main -> develop)
60+
if: github.ref == 'refs/heads/main'
3961
run: |
4062
git stash
4163
git checkout develop

.github/workflows/sample-distribution.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,18 @@ jobs:
1515
build_and_deploy_ios_testflight_qa:
1616
name: Build SampleApp iOS and Deploy-${{ github.ref == 'refs/heads/develop' }}
1717
runs-on: [macos-15]
18+
strategy:
19+
matrix:
20+
node-version: [ 24.x ]
1821
steps:
1922
- name: Connect Bot
2023
uses: webfactory/[email protected]
2124
with:
2225
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{ matrix.node-version }}
2330
- uses: actions/checkout@v3
2431
- uses: maxim-lobanov/setup-xcode@v1
2532
with:
@@ -53,7 +60,14 @@ jobs:
5360
build_and_deploy_android_s3:
5461
name: Build SampleApp Android and Deploy-${{ github.ref == 'refs/heads/develop' }}
5562
runs-on: ubuntu-latest
63+
strategy:
64+
matrix:
65+
node-version: [ 24.x ]
5666
steps:
67+
- name: Use Node.js ${{ matrix.node-version }}
68+
uses: actions/setup-node@v4
69+
with:
70+
node-version: ${{ matrix.node-version }}
5771
- uses: actions/checkout@v2
5872
- uses: actions/setup-java@v3
5973
with:

.github/workflows/sdk-size-metrics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- uses: actions/setup-node@v4
3131
with:
32-
node-version: 22.x
32+
node-version: 24.x
3333
cache: 'yarn'
3434

3535
- name: Run SDK Size Metrics

.yarnrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ nmHoistingLimits: workspaces
22

33
nodeLinker: node-modules
44

5+
npmPublishProvenance: true
6+
57
yarnPath: .yarn/releases/yarn-1.22.22.cjs

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
"devDependencies": {
99
"@commitlint/cli": "^12.1.4",
1010
"@commitlint/config-conventional": "^12.1.4",
11-
"@semantic-release/changelog": "^6.0.2",
11+
"@semantic-release/changelog": "^6.0.3",
1212
"@semantic-release/exec": "^6.0.3",
1313
"@semantic-release/git": "^10.0.1",
1414
"dotenv": "^10.0.0",
1515
"execa": "^5.1.1",
1616
"husky": "^6.0.0",
1717
"lerna": "^4.0.0",
1818
"prettier": "^3.5.1",
19-
"semantic-release": "^19.0.5",
19+
"semantic-release": "^25.0.2",
2020
"uglify-js": "^3.19.2"
2121
},
2222
"husky": {

package/expo-package/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
"company": "Stream.io Inc",
77
"name": "Stream.io Inc"
88
},
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/GetStream/stream-chat-react-native.git",
12+
"directory": "package/expo-package"
13+
},
914
"license": "SEE LICENSE IN LICENSE",
1015
"main": "src/index.js",
1116
"types": "types/index.d.ts",

package/expo-package/src/optionalDependencies/Sound.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ class ExpoAudioSoundAdapter {
9999

100100
// eslint-disable-next-line require-await
101101
loadAsync = async (initialStatus) => {
102+
// We have to subscribe as early as possible so that we know the initial status(durarion, etc.) of the audio.
103+
this.subscribeStatusEventListener();
102104
this.initialShouldCorrectPitch = initialStatus.shouldCorrectPitch;
103105
this.initialPitchCorrectionQuality = initialStatus.pitchCorrectionQuality;
104106
};
@@ -136,8 +138,7 @@ class ExpoAudioSoundAdapter {
136138
};
137139

138140
// eslint-disable-next-line require-await
139-
setPositionAsync: SoundReturnType['setPositionAsync'] = async (milliseconds) => {
140-
const seconds = milliseconds / 1000;
141+
setPositionAsync: SoundReturnType['setPositionAsync'] = async (seconds) => {
141142
this.player.seekTo(seconds);
142143
};
143144

0 commit comments

Comments
 (0)