This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
Expo Dependencies #27
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: Expo Dependencies | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
permissions: | |
contents: read | |
jobs: | |
Upgrade: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- run: corepack enable yarn | |
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 | |
with: | |
node-version-file: '.nvmrc' | |
cache: yarn | |
- run: yarn install --frozen-lockfile | |
- run: yarn expo-cli upgrade | |
# https://github.com/expo/expo/blob/main/packages/expo/bundledNativeModules.json | |
# console.log(JSON.stringify(Object.keys(JSON.parse(require('fs').readFileSync('./bundledNativeModules.json', 'utf8'))))) | |
working-directory: ./app | |
- id: app_token | |
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 # v1.8.0 | |
with: | |
app_id: ${{ vars.KEYCHAIN_BOT_APP_ID }} | |
private_key: ${{ secrets.KEYCHAIN_BOT_PRIVATE_KEY }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2 | |
with: | |
token: ${{ steps.app_token.outputs.token }} | |
commit-message: 'bump(deps): `expo-cli upgrade` dependencies' | |
committer: Keychain Bot <[email protected]> | |
author: Keychain Bot <[email protected]> | |
title: 'bump(deps): `expo-cli upgrade` dependencies' | |
body: | | |
#### What this PR does / why we need it: | |
Bump expo dependencies to newest release with `yarn expo-cli upgrade`, this command also fixes `./app/package.json` and `./app/app.json` files to patch any non-compliant dependencies. | |
branch: keychain-bot/expo-deps |