chore(react-native-example): upgrade example app & fix detox tests #505
Workflow file for this run
This file contains 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
name: ci-wrapper-rn | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
build_test: | |
name: Build & Test RN Wrapper | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ci-wrapper-rn-${{ matrix.runners }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
working-directory: wrappers/react-native | |
steps: | |
- name: Checkout | |
uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # [email protected] | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
registry-url: https://registry.npmjs.org | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Lint | |
run: yarn lint | |
- name: Build | |
run: yarn build | |
publish_unstable: | |
name: Publish unstable package release | |
needs: build_test | |
runs-on: macos-latest | |
if: "github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, 'chore(release): publish')" | |
defaults: | |
run: | |
working-directory: ./wrappers/react-native | |
steps: | |
- name: Checkout | |
uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # [email protected] | |
- name: Setup rust toolchain | |
uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # [email protected] | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
registry-url: https://registry.npmjs.org | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: "17" | |
distribution: "zulu" | |
- name: Run yarn install | |
run: yarn install --frozen-lockfile | |
- name: Run yarn build | |
run: yarn build:all | |
- name: Configure NPM JS User | |
run: | | |
git config user.name "Mattr CI" | |
git config user.email "[email protected]" | |
npm whoami | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }} | |
- name: Publish unstable build | |
run: yarn publish:unstable | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }} | |
publish_release: | |
name: Publish package release | |
needs: build_test | |
runs-on: macos-latest | |
if: "github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, 'chore(release): publish')" | |
defaults: | |
run: | |
working-directory: ./wrappers/react-native | |
steps: | |
- name: Checkout | |
uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # [email protected] | |
- name: Setup rust toolchain | |
uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # [email protected] | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
registry-url: https://registry.npmjs.org | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: "17" | |
distribution: "zulu" | |
- name: Run yarn install | |
run: yarn install --frozen-lockfile | |
- name: Run yarn build | |
run: yarn build:all | |
- name: Configure NPM JS User | |
run: | | |
git config user.name "Mattr CI" | |
git config user.email "[email protected]" | |
npm whoami | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }} | |
- name: Publish release build | |
run: yarn publish:release | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }} |