Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- 'nitrogen/generated/android/**'
- 'cpp/**'
- 'android/**'
- '**/bun.lock'
- '**/yarn.lock'
- '**/react-native.config.js'
- '**/nitro.json'
pull_request:
Expand All @@ -25,7 +25,7 @@ on:
- '**/nitrogen/generated/android/**'
- 'cpp/**'
- 'android/**'
- '**/bun.lock'
- '**/yarn.lock'
- '**/react-native.config.js'
- '**/nitro.json'
workflow_dispatch:
Expand All @@ -39,22 +39,27 @@ jobs:
name: Build Android Example App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v5

- name: Enable Corepack
run: corepack enable

- uses: actions/setup-node@v5
with:
node-version: '20'
node-version: '24'
cache: 'yarn'

- name: Install dependencies (yarn)
run: yarn install --immutable

- name: Generate Nitro bindings
run: yarn codegen

- name: Setup JDK 17
- name: Setup JDK 21
uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
cache: 'gradle'

- name: Cache Gradle
Expand Down
21 changes: 13 additions & 8 deletions .github/workflows/ios-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
- 'cpp/**'
- 'ios/**'
- '**/Podfile.lock'
- '**/bun.lock'
- '**/yarn.lock'
- '**/*.podspec'
- '**/react-native.config.js'
- '**/nitro.json'
Expand All @@ -32,7 +32,7 @@ on:
- 'cpp/**'
- 'ios/**'
- '**/Podfile.lock'
- '**/bun.lock'
- '**/yarn.lock'
- '**/*.podspec'
- '**/react-native.config.js'
- '**/nitro.json'
Expand All @@ -48,16 +48,21 @@ concurrency:
jobs:
build:
name: Build iOS Example App
runs-on: macOS-15
runs-on: macos-26
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v5

- name: Enable Corepack
run: corepack enable

- uses: actions/setup-node@v5
with:
node-version: '20'
node-version: '24'
cache: 'yarn'
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 16.4
xcode-version: '26.2'

- name: Install dependencies (yarn)
run: yarn install --immutable
Expand All @@ -68,7 +73,7 @@ jobs:
- name: Setup Ruby (bundle)
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
ruby-version: '3.4'
bundler-cache: true
working-directory: example/ios

Expand Down
30 changes: 14 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,25 @@ jobs:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Bun.js
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Cache bun dependencies
id: bun-cache
uses: actions/cache@v4

- name: Enable Corepack
run: corepack enable

- name: Setup Node.js
uses: actions/setup-node@v5
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-bun-
node-version: '24'
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'

- name: Install npm dependencies (bun)
run: bun install
- name: Install dependencies (yarn)
run: yarn install --immutable

- name: Build lib
run: bun run build
run: yarn build

- name: Release
env:
Expand All @@ -52,4 +50,4 @@ jobs:
GIT_AUTHOR_EMAIL: '${{ github.actor }}@users.noreply.github.com'
GIT_COMMITTER_NAME: ${{ github.actor }}
GIT_COMMITTER_EMAIL: '${{ github.actor }}@users.noreply.github.com'
run: bun release
run: yarn release
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env sh
yarn lint-staged
Copy link

Copilot AI Apr 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This hook script is missing a shebang. Git executes hooks as standalone executables; without a #!/usr/bin/env sh (or similar) header, this will typically fail with an “exec format error” on POSIX systems.

Add the appropriate shebang (and, if required by Husky, the standard husky.sh bootstrap) and ensure the file is marked executable in git.

Copilot uses AI. Check for mistakes.
Loading
Loading