-
Notifications
You must be signed in to change notification settings - Fork 0
ci(release): adopt automated SDK governance #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
722c201
ci(release): adopt automated SDK governance
tolgahan-arikan 3ad17f7
ci(lint): validate Node module scripts
tolgahan-arikan 7eb61a6
fix(release): version root package with changesets
tolgahan-arikan f7c121f
chore: merge latest master
tolgahan-arikan df7301b
ci: adopt shared review workflows
tolgahan-arikan cd2c2a9
fix(release): isolate Expo follow-up
tolgahan-arikan c1be6c1
ci: rely on default CodeQL scanning
tolgahan-arikan b687e23
fix(deps): update vulnerable fast-uri resolution
tolgahan-arikan 5741165
fix(deps): update vulnerable js-yaml resolutions
tolgahan-arikan ebecac2
chore(deps): harden Yarn supply chain
tolgahan-arikan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Changesets | ||
|
|
||
| Every pull request must include a changeset. | ||
|
|
||
| Use `yarn changeset` for a consumer-facing change to | ||
| `@polygonlabs/oms-wallet-react-native`. Choose the SemVer bump that matches the public impact and | ||
| write a user-facing summary. | ||
|
|
||
| Use `yarn changeset add --empty` for documentation, CI, tooling, or example-only changes that do | ||
| not change the published package. | ||
|
|
||
| The automated release workflow consumes changesets, updates the root package version and | ||
| `CHANGELOG.md`, publishes through npm trusted publishing, and creates the `v<version>` tag and | ||
| GitHub Release. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "$schema": "https://unpkg.com/@changesets/config@3.0.5/schema.json", | ||
| "changelog": [ | ||
| "@changesets/changelog-github", | ||
| { | ||
| "repo": "0xPolygon/oms-wallet-react-native-sdk" | ||
| } | ||
| ], | ||
| "commit": false, | ||
| "fixed": [], | ||
| "linked": [], | ||
| "access": "public", | ||
| "baseBranch": "master", | ||
| "updateInternalDependencies": "patch", | ||
| "bumpVersionsWithWorkspaceProtocolOnly": false, | ||
| "privatePackages": { | ||
| "version": false, | ||
| "tag": false | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@polygonlabs/oms-wallet-react-native': patch | ||
| --- | ||
|
|
||
| Declare the package module type, supported Node.js engines, and tree-shaking metadata. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| * @0xPolygon/product-applications |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| blank_issues_enabled: false | ||
| contact_links: | ||
| - name: Feature Request 💡 | ||
| url: https://github.com/0xsequence/react-native-sdk/discussions/new?category=ideas | ||
| about: If you have a feature request, please create a new discussion on GitHub. | ||
| url: https://github.com/0xPolygon/oms-wallet-react-native-sdk/issues/new | ||
| about: If you have a feature request, please open an issue on GitHub. | ||
| - name: Discussions on GitHub 💬 | ||
| url: https://github.com/0xsequence/react-native-sdk/discussions | ||
| about: If this library works as promised but you need help, please ask questions there. | ||
| url: https://github.com/0xPolygon/oms-wallet-react-native-sdk/issues | ||
| about: If this library works as promised but you need help, please open an issue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| name: Changeset check | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [master] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| check: | ||
| name: Require changeset | ||
| if: "!startsWith(github.head_ref, 'changeset-release/')" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Setup | ||
| uses: ./.github/actions/setup | ||
| - name: Check changesets | ||
| env: | ||
| BASE_REF: ${{ github.base_ref }} | ||
| run: yarn changeset status --since="origin/$BASE_REF" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,177 +1,17 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: [master] | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| verify: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Setup | ||
| uses: ./.github/actions/setup | ||
|
|
||
| - name: Install Expo example dependencies | ||
| run: yarn expo-example:install | ||
|
|
||
| - name: Verify SDK | ||
| run: yarn verify | ||
|
|
||
| - name: Typecheck Expo example | ||
| run: npm --prefix examples/expo-example run typecheck | ||
|
|
||
| - name: Prebuild and verify Expo native autolinking | ||
| run: yarn expo-example:prebuild && yarn expo-example:verify-autolinking | ||
|
|
||
|
|
||
| build-library: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Setup | ||
| uses: ./.github/actions/setup | ||
|
|
||
| - name: Build package | ||
| run: yarn prepare | ||
|
|
||
| build-android: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| env: | ||
| ANDROID_NDK_VERSION: 27.1.12297006 | ||
| TURBO_CACHE_DIR: .turbo/android | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Setup | ||
| uses: ./.github/actions/setup | ||
|
|
||
| - name: Cache turborepo for Android | ||
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| with: | ||
| path: ${{ env.TURBO_CACHE_DIR }} | ||
| key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-turborepo-android- | ||
|
|
||
| - name: Check turborepo cache for Android | ||
| run: | | ||
| TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:android --filter=oms-client-react-native-sdk-example --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:android').cache.status") | ||
|
|
||
| if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then | ||
| echo "turbo_cache_hit=1" >> $GITHUB_ENV | ||
| fi | ||
|
|
||
| - name: Install JDK | ||
| if: env.turbo_cache_hit != '1' | ||
| uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 | ||
| with: | ||
| distribution: 'zulu' | ||
| java-version: '17' | ||
|
|
||
| - name: Finalize Android SDK | ||
| if: env.turbo_cache_hit != '1' | ||
| run: | | ||
| /bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null" | ||
| for attempt in 1 2 3; do | ||
| if "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" "ndk;$ANDROID_NDK_VERSION"; then | ||
| exit 0 | ||
| fi | ||
|
|
||
| rm -rf "$ANDROID_HOME/ndk/$ANDROID_NDK_VERSION" "$ANDROID_HOME/.temp" | ||
| sleep 10 | ||
| done | ||
|
|
||
| exit 1 | ||
|
|
||
|
|
||
| - name: Cache Gradle | ||
| if: env.turbo_cache_hit != '1' | ||
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| with: | ||
| path: | | ||
| ~/.gradle/wrapper | ||
| ~/.gradle/caches | ||
| key: ${{ runner.os }}-gradle-${{ hashFiles('examples/sdk-example/android/gradle/wrapper/gradle-wrapper.properties') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-gradle- | ||
|
|
||
| - name: Build example for Android | ||
| env: | ||
| JAVA_OPTS: "-XX:MaxHeapSize=6g" | ||
| run: | | ||
| yarn turbo run build:android --filter=oms-client-react-native-sdk-example --cache-dir="${{ env.TURBO_CACHE_DIR }}" | ||
|
|
||
| build-ios: | ||
| runs-on: macos-latest | ||
|
|
||
| env: | ||
| XCODE_VERSION: 26 | ||
| TURBO_CACHE_DIR: .turbo/ios | ||
| RCT_USE_RN_DEP: 1 | ||
| RCT_USE_PREBUILT_RNCORE: 1 | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Setup | ||
| uses: ./.github/actions/setup | ||
|
|
||
| - name: Cache turborepo for iOS | ||
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| with: | ||
| path: ${{ env.TURBO_CACHE_DIR }} | ||
| key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-turborepo-ios- | ||
|
|
||
| - name: Check turborepo cache for iOS | ||
| run: | | ||
| TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:ios --filter=oms-client-react-native-sdk-example --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status") | ||
|
|
||
| if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then | ||
| echo "turbo_cache_hit=1" >> $GITHUB_ENV | ||
| fi | ||
|
|
||
| - name: Use appropriate Xcode version | ||
| if: env.turbo_cache_hit != '1' | ||
| uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1.7.0 | ||
| with: | ||
| xcode-version: ${{ env.XCODE_VERSION }} | ||
|
|
||
| - name: Setup Ruby | ||
| if: env.turbo_cache_hit != '1' | ||
| uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1 | ||
| with: | ||
| ruby-version: '3.4.9' | ||
|
|
||
| - name: Install cocoapods | ||
| if: env.turbo_cache_hit != '1' | ||
| run: | | ||
| cd examples/sdk-example | ||
| bundle install | ||
| bundle exec pod repo update --verbose | ||
| bundle exec pod install --project-directory=ios | ||
|
|
||
| - name: Build example for iOS | ||
| run: | | ||
| yarn turbo run build:ios --filter=oms-client-react-native-sdk-example --cache-dir="${{ env.TURBO_CACHE_DIR }}" | ||
| verification: | ||
| uses: ./.github/workflows/verification.yml | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| name: Claude Code Review | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, ready_for_review, reopened] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| issues: read | ||
| id-token: write | ||
| actions: read | ||
|
|
||
| jobs: | ||
| claude-review: | ||
| uses: 0xPolygon/pipelines/.github/workflows/apps-claude-code-review.yml@main | ||
| secrets: | ||
| CLAUDE_API_KEY: ${{ secrets.CLAUDE_API_KEY }} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.