-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #803 from andrew-bierman/feat/upgrade-expo-50
⬆️ expo 50 upgrade
- Loading branch information
Showing
94 changed files
with
6,583 additions
and
5,266 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: 'Set Environment Tokens' | ||
description: 'Set environment variables for various tokens' | ||
inputs: | ||
mapbox_token: | ||
description: 'Mapbox Downloads Token' | ||
required: false | ||
default: '' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Set Mapbox Downloads Token | ||
if: inputs.mapbox_token != '' | ||
run: export MAPBOX_DOWNLOADS_TOKEN=${{ inputs.mapbox_token }} | ||
shell: bash |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,77 @@ | ||
# Add 'repo' label to any root file changes | ||
repo: | ||
- '*' | ||
# Add 'root' label to any root file changes | ||
# Quotation marks are required for the leading asterisk | ||
root: | ||
- changed-files: | ||
- any-glob-to-any-file: '*' | ||
|
||
# Add 'test' label to any change to *.spec.ts and *.spec.js files within the entire repository | ||
test: | ||
- '**/*.spec.ts' | ||
- '**/*.spec.js' | ||
- '**/*.test.ts' | ||
- '**/*.test.js' | ||
- '**/tests/**/*.ts' | ||
- '**/tests/**/*.js' | ||
## Equivalent of the above mentioned configuration using another syntax | ||
docs: | ||
- changed-files: | ||
- any-glob-to-any-file: ['docs/*', 'guides/*', '**/*.md'] | ||
|
||
# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name | ||
feature: | ||
- head-branch: ['^feature', 'feature'] | ||
|
||
# Add 'release' label to any PR that is opened against the `main` branch | ||
release: | ||
- base-branch: 'main' | ||
|
||
# Add 'test' label to any change to *.spec.ts, *.spec.js, *.test.ts, *.test.js files within the entire repository | ||
test: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- '**/*.spec.ts' | ||
- '**/*.spec.js' | ||
- '**/*.test.ts' | ||
- '**/*.test.js' | ||
- '**/tests/**/*.ts' | ||
- '**/tests/**/*.js' | ||
|
||
# Add 'frontend' label to any change in the 'client' directory | ||
frontend: | ||
- 'apps/**/*.{ts,js}' | ||
- any: ['apps/**/*.ts', 'apps/**/*.js'] | ||
all: ['!apps/src/main.ts', '!apps/src/main.js'] | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- 'apps/**/*.{ts,js}' | ||
- any: 'apps/**/*.ts' | ||
- any: 'apps/**/*.js' | ||
- all-globs-to-all-files: | ||
- '!apps/src/main.ts' | ||
- '!apps/src/main.js' | ||
|
||
# Add 'backend' label to any change in the 'server' directory | ||
backend: | ||
- 'server/**/*.{ts,js}' | ||
- changed-files: | ||
- any-glob-to-any-file: 'server/**/*.{ts,js}' | ||
|
||
# Add the 'AnyChange' label to any changes within the entire repository | ||
AnyChange: | ||
- '**' | ||
- '**/.*' | ||
- '**/.*/**' | ||
- '**/.*/**/.*' | ||
- changed-files: | ||
- any-glob-to-any-file: '**' | ||
|
||
# Add 'client' label to any change in the 'apps' directory | ||
client: | ||
- apps/**/* | ||
- changed-files: | ||
- any-glob-to-any-file: 'apps/**/*' | ||
|
||
# Add 'expo' label to any changes in the 'apps/expo' directory | ||
expo: | ||
- apps/expo/**/* | ||
- changed-files: | ||
- any-glob-to-any-file: 'apps/expo/**/*' | ||
|
||
# Add 'next' label to any changes in the 'apps/next' directory | ||
next: | ||
- apps/next/**/* | ||
- changed-files: | ||
- any-glob-to-any-file: 'apps/next/**/*' | ||
|
||
# Add 'vite' label to any changes in the 'apps/vite' directory | ||
vite: | ||
- apps/vite/**/* | ||
- changed-files: | ||
- any-glob-to-any-file: 'apps/vite/**/*' | ||
|
||
# Add 'api' label to any changes in the 'api' or 'server' directories | ||
api: | ||
- api/**/* | ||
- server/**/* | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- 'api/**/*' | ||
- 'server/**/*' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
EXPO_TOKEN="your_token_here" | ||
MAPBOX_DOWNLOADS_TOKEN="your_mapbox_token_here" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: iOS App Release Build | ||
|
||
on: | ||
push: | ||
branches: ['**'] | ||
pull_request: | ||
branches: ['**'] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Setup repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: 'yarn' | ||
|
||
- name: Setup EAS | ||
uses: expo/expo-github-action@v8 | ||
with: | ||
eas-version: latest | ||
token: ${{ secrets.EXPO_TOKEN }} | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Setup environment variables | ||
run: | | ||
echo "MAPBOX_DOWNLOADS_TOKEN=$MAPBOX_DOWNLOADS_TOKEN" >> $GITHUB_ENV | ||
- name: Prebuild | ||
run: | | ||
echo "Using Mapbox Token: $MAPBOX_DOWNLOADS_TOKEN" | ||
export MAPBOX_DOWNLOADS_TOKEN=${{ secrets.MAPBOX_DOWNLOADS_TOKEN }} | ||
yarn run prebuild:expo | ||
- name: Build iOS app | ||
run: | | ||
echo "Using Mapbox Token: $MAPBOX_DOWNLOADS_TOKEN" | ||
export MAPBOX_DOWNLOADS_TOKEN=${{ secrets.MAPBOX_DOWNLOADS_TOKEN }} | ||
eas build --platform ios --profile preview --local --non-interactive --output ${{ github.workspace }}/app-release.ipa | ||
env: | ||
DEBUG: 'true' | ||
continue-on-error: true | ||
|
||
- name: Upload IPA artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: app-release | ||
path: ${{ github.workspace }}/app-release.ipa | ||
|
||
- name: Create Commit Comment | ||
if: github.event_name == 'push' | ||
uses: peter-evans/commit-comment@v2 | ||
with: | ||
body: | | ||
iOS app build ${{ steps.build.outcome == 'success' && 'completed' || 'failed' }}! | ||
${{ steps.build.outcome == 'success' && format('You can download the IPA file from the following link:\nhttps://github.com/{0}/actions/runs/{1}#artifacts', github.repository, github.run_id) || 'Please check the workflow logs for more details on the build failure.' }} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,10 @@ npm-debug.* | |
*.orig.* | ||
web-build/ | ||
|
||
# iOS and Android build folders | ||
ios/ | ||
android/ | ||
|
||
# macOS | ||
.DS_Store | ||
|
||
|
Oops, something went wrong.