Skip to content

Commit 67898d7

Browse files
authored
fix: trusted package releases (#3326)
## 🎯 Goal <!-- Describe why we are making this change --> ## 🛠 Implementation details <!-- Provide a description of the implementation --> ## 🎨 UI Changes <!-- Add relevant screenshots --> <details> <summary>iOS</summary> <table> <thead> <tr> <td>Before</td> <td>After</td> </tr> </thead> <tbody> <tr> <td> <!--<img src="" /> --> </td> <td> <!--<img src="" /> --> </td> </tr> </tbody> </table> </details> <details> <summary>Android</summary> <table> <thead> <tr> <td>Before</td> <td>After</td> </tr> </thead> <tbody> <tr> <td> <!--<img src="" /> --> </td> <td> <!--<img src="" /> --> </td> </tr> </tbody> </table> </details> ## 🧪 Testing <!-- Explain how this change can be tested (or why it can't be tested) --> ## ☑️ Checklist - [ ] I have signed the [Stream CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) (required) - [ ] PR targets the `develop` branch - [ ] Documentation is updated - [ ] New code is tested in main example apps, including all possible scenarios - [ ] SampleApp iOS and Android - [ ] Expo iOS and Android
1 parent 43a04c6 commit 67898d7

File tree

15 files changed

+2592
-1820
lines changed

15 files changed

+2592
-1820
lines changed

.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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ on:
55
branches:
66
- develop
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
actions: write # Required for dispatching other workflows
11+
contents: write # required for committing the version bump
12+
813
jobs:
914
publish-next:
1015
runs-on: ubuntu-latest
1116
strategy:
1217
matrix:
13-
node-version: [22.x]
18+
node-version: [24.x]
1419
steps:
1520
- uses: actions/checkout@v2
1621
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
node-version: [22.x]
13+
node-version: [24.x]
1414
steps:
1515
- uses: actions/checkout@v2
1616
with:

.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/i18next-parser.config.js

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

package/i18next.config.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import { defineConfig } from 'i18next-cli';
2+
3+
export default defineConfig({
4+
"locales": [
5+
"en",
6+
"es",
7+
"fr",
8+
"he",
9+
"hi",
10+
"it",
11+
"ja",
12+
"ko",
13+
"nl",
14+
"pt-br",
15+
"ru",
16+
"tr"
17+
],
18+
"extract": {
19+
"input": [
20+
"./src/**/*.{tsx,ts}"
21+
],
22+
"output": "src/i18n/{{language}}.json",
23+
"defaultNS": "translation",
24+
"keySeparator": false,
25+
"nsSeparator": false,
26+
"functions": [
27+
"t",
28+
"*.t"
29+
],
30+
"transComponents": [
31+
"Trans"
32+
]
33+
},
34+
"types": {
35+
"input": [
36+
"locales/{{language}}/{{namespace}}.json"
37+
],
38+
"output": "src/types/i18next.d.ts"
39+
}
40+
});

package/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"scripts": {
2525
"install-all": "(yarn install --force && (cd native-package && yarn install --force) && (cd expo-package && yarn install --force))",
2626
"build": "rimraf lib && yarn run --silent build-translations && bob build && yarn run --silent copy-translations",
27-
"build-translations": "i18next",
27+
"build-translations": "i18next-cli sync",
2828
"copy-translations": "echo '\u001b[34mℹ\u001b[0m Copying translation files to \u001b[34mlib/typescript/i18n\u001b[0m' && cp -R -f ./src/i18n ./lib/typescript/i18n && echo '\u001b[32m✓\u001b[0m Done Copying Translations'",
2929
"eslint": "eslint 'src/**/*.{js,md,ts,jsx,tsx}' --max-warnings 0",
3030
"lint": "prettier --ignore-path ../.prettierignore --list-different 'src/**/*.{js,ts,tsx,md,json}' eslint.config.mjs ../.prettierrc babel.config.js && eslint 'src/**/*.{js,ts,tsx,md}' --max-warnings 0 && yarn run validate-translations",
@@ -112,11 +112,11 @@
112112
"@babel/core": "^7.27.4",
113113
"@babel/runtime": "^7.27.6",
114114
"@op-engineering/op-sqlite": "^14.0.3",
115-
"@shopify/flash-list": "^2.1.0",
116115
"@react-native-community/eslint-config": "3.2.0",
117116
"@react-native-community/eslint-plugin": "1.3.0",
118117
"@react-native-community/netinfo": "^11.4.1",
119118
"@react-native/babel-preset": "0.79.3",
119+
"@shopify/flash-list": "^2.1.0",
120120
"@testing-library/jest-native": "^5.4.3",
121121
"@testing-library/react-native": "13.2.0",
122122
"@types/better-sqlite3": "^7.6.13",
@@ -145,7 +145,7 @@
145145
"eslint-plugin-react": "^7.37.5",
146146
"eslint-plugin-react-hooks": "^5.2.0",
147147
"eslint-plugin-react-native": "^5.0.0",
148-
"i18next-parser": "^9.3.0",
148+
"i18next-cli": "^1.31.0",
149149
"jest": "^30.0.0",
150150
"moment-timezone": "^0.6.0",
151151
"prettier": "^3.5.3",

0 commit comments

Comments
 (0)