Skip to content

Bump the react-native group across 1 directory with 13 updates #460

Bump the react-native group across 1 directory with 13 updates

Bump the react-native group across 1 directory with 13 updates #460

Workflow file for this run

name: Build
on:
push:
branches:
- main
paths-ignore:
- README.md
- CHANGELOG.md
pull_request:
branches:
- main
paths-ignore:
- README.md
- CHANGELOG.md
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-latest
name: πŸ› οΈ Build
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: βŽ” Setup turborepo caching
uses: rharkor/[email protected]
- name: βŽ” Setup pnpm
uses: pnpm/action-setup@v4
- name: βŽ” Setup node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'pnpm'
- name: πŸ“₯ Download deps
run: pnpm install # also does prepare
- name: πŸ’… Prettier check
run: pnpm format:check
# - name: πŸ› οΈ Build
# run: pnpm build
- name: πŸ”¬ Lint
run: pnpm lint
- name: πŸ§ͺ Test
run: pnpm test
- name: βŽ” Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: πŸ—„οΈ Cache Gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/wrapper
~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('examples/identity/android/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
save-always: true
- name: Set SDK path
run: cd examples/identity && echo "sdk.dir=$ANDROID_HOME" >> android/local.properties
- name: πŸ› οΈ Build examples for Android
run: pnpm build:android
env:
JAVA_OPTS: '-XX:MaxHeapSize=6g'
# - name: Build examples for iOS
# run: pnpm build:ios
- name: πŸ“£ Create Release Pull Request or Publish to npm
if: ${{ github.ref == 'refs/heads/main' }}
uses: changesets/action@v1
with:
title: 'chore(release): version packages'
publish: pnpm packages:publish
version: pnpm packages:version
commit: 'chore(release): version packages'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}