-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): authenticate with Twitch API
- Loading branch information
Showing
253 changed files
with
3,838 additions
and
402 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
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,100 @@ | ||
name: Release app | ||
on: | ||
workflow_dispatch: | ||
env: | ||
NODE_VERSION: 18.18.0 | ||
FOAM_RELEASE_TOKEN: ${{ secrets.FOAM_RELEASE_TOKEN }} | ||
|
||
jobs: | ||
release: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.sha }}-release | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
name: Build | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
steps: | ||
- name: Check for FOAM_RELEASE_TOKEN | ||
run: | | ||
if [ -z "${{ secrets.FOAM_RELEASE_TOKEN }}" ]; then | ||
echo "You must provide an FOAM_RELEASE_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions" | ||
exit 1 | ||
fi | ||
- name: Install moreutils | ||
run: sudo apt install moreutils | ||
|
||
# https://github.com/actions/virtual-environments/issues/1187 | ||
- name: tune linux network | ||
run: sudo ethtool -K eth0 tx off rx off | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: get yarn cache directory | ||
id: cache | ||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | ||
shell: bash | ||
working-directory: ./ | ||
|
||
- name: setup yarn cache | ||
uses: actions/cache@v3 | ||
id: yarn-cache | ||
with: | ||
path: ${{ steps.cache.outputs.dir }} | ||
key: yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
yarn- | ||
- name: install yarn | ||
run: corepack enable | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: format:check | ||
run: yarn format:check | ||
|
||
- name: lint | ||
run: yarn lint | ||
|
||
- name: jest | ||
run: yarn test | ||
|
||
- name: tsc | ||
run: yarn tsc | ||
|
||
# PUBLISH | ||
- name: new version | ||
run: | | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor }}@users.noreply.github.com" | ||
npx lerna publish --yes --conventional-commits --force-publish --no-push --create-release github | ||
git push -u origin main --force --no-verify --follow-tags | ||
- name: get release version | ||
id: get_release_version | ||
run: echo "release_version=$(cat lerna.json | jq -r '.version')" >> $GITHUB_ENV | ||
shell: bash | ||
working-directory: ./ | ||
|
||
- name: 🏗 Setup EAS | ||
uses: expo/expo-github-action@v8 | ||
with: | ||
eas-version: latest | ||
token: ${{ secrets.FOAM_RELEASE_TOKEN }} | ||
|
||
- name: 🚀 Build app version ${{ github.env.get_release_version.outputs.release_version}} | ||
run: eas build --non-interactive | ||
|
||
- name: 🚀 Submit app version ${{ github.env.get_release_version.outputs.release_version}} to play store | ||
run: eas submit --latest -p android | ||
|
||
- name: Submit app version ${{ github.env.get_release_version.outputs.release_version}} to app store | ||
run: eas submit --latest -p ios |
Binary file added
BIN
+8.64 KB
.yarn/cache/@hutson-parse-repository-url-npm-3.0.2-ae5ef1b671-39992c5f18.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.44 KB
.yarn/cache/@npmcli-installed-package-contents-npm-2.0.2-99564e3824-60789d5ed2.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.21 KB
.yarn/cache/@npmcli-promise-spawn-npm-6.0.2-c9941b207c-aa725780c1.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+402 KB
.yarn/cache/@octokit-openapi-types-npm-18.1.1-18b6c70735-94f42977fd.zip
Binary file not shown.
Binary file added
BIN
+720 KB
.yarn/cache/@octokit-plugin-enterprise-rest-npm-6.0.1-e1c802acb0-1c9720002f.zip
Binary file not shown.
Binary file added
BIN
+35 KB
.yarn/cache/@octokit-plugin-paginate-rest-npm-6.1.2-3b2443d1e8-a7b3e686c7.zip
Binary file not shown.
Binary file added
BIN
+7.97 KB
.yarn/cache/@octokit-plugin-request-log-npm-1.0.4-9ab5a2f888-2086db0005.zip
Binary file not shown.
Binary file added
BIN
+164 KB
.yarn/cache/@octokit-plugin-rest-endpoint-methods-npm-7.2.3-c54ecf5d8d-21dfb98514.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+57 KB
.yarn/cache/@sigstore-protobuf-specs-npm-0.2.1-feecdcc08c-ddb7c829c7.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.98 KB
.yarn/cache/@tufjs-canonical-json-npm-1.0.0-66d27d850f-9ff3bcd129.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+7.95 KB
.yarn/cache/conventional-changelog-angular-npm-7.0.0-de5edb79f0-2478962ad7.zip
Binary file not shown.
Binary file added
BIN
+9.78 KB
.yarn/cache/conventional-changelog-core-npm-5.0.1-29a3502d64-5f37f14f8d.zip
Binary file not shown.
Binary file added
BIN
+3.41 KB
.yarn/cache/conventional-changelog-preset-loader-npm-3.0.0-cafa12f2b8-199c4730c5.zip
Binary file not shown.
Binary file added
BIN
+12 KB
.yarn/cache/conventional-changelog-writer-npm-6.0.1-11f2e19df2-d8619ff744.zip
Binary file not shown.
Binary file added
BIN
+3.41 KB
.yarn/cache/conventional-commits-filter-npm-3.0.0-814899c1e8-73337f42ac.zip
Binary file not shown.
Binary file added
BIN
+11.1 KB
.yarn/cache/conventional-commits-parser-npm-4.0.0-bc0a9be0fa-12d95b5ba8.zip
Binary file not shown.
Binary file added
BIN
+7.6 KB
.yarn/cache/conventional-recommended-bump-npm-7.0.1-2ed39b8c92-e2d1f2f40f.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+28.1 KB
.yarn/cache/expo-dev-menu-interface-npm-1.3.0-09ef52ecde-74fbe9849b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+9.19 KB
.yarn/cache/expo-updates-interface-npm-0.10.1-2675cc0c1d-7fe5ac9d65.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.38 KB
.yarn/cache/git-remote-origin-url-npm-2.0.0-319debe0d1-85263a09c0.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.4 KB
.yarn/cache/json-parse-even-better-errors-npm-3.0.0-3675833c0a-f1970b5220.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+11.5 KB
.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip
Binary file not shown.
Binary file added
BIN
+11.4 KB
.yarn/cache/normalize-package-data-npm-5.0.0-6327e2af68-a459f05eaf.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+32.5 KB
.yarn/cache/npm-normalize-package-bin-npm-1.0.1-2cf38a5d95-ae7f15155a.zip
Binary file not shown.
Binary file added
BIN
+2.83 KB
.yarn/cache/npm-normalize-package-bin-npm-3.0.1-6c120b50f7-de416d720a.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+39.8 KB
.yarn/cache/react-native-fast-image-npm-8.6.3-03ee2d23c0-29289cb6b2.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.77 KB
.yarn/cache/read-package-json-fast-npm-3.0.2-1232471a07-8d406869f0.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+8.75 KB
.yarn/cache/strong-log-transformer-npm-2.1.0-45addd9278-abf9a4ac14.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.26 KB
.yarn/cache/validate-npm-package-name-npm-5.0.0-fc061c1b84-5342a99498.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,19 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"broadcaster_language": "en", | ||
"broadcaster_login": "a_seagull", | ||
"display_name": "A_Seagull", | ||
"game_id": "506442", | ||
"game_name": "DOOM Eternal", | ||
"id": "19070311", | ||
"is_live": true, | ||
"tag_ids": [], | ||
"tags": ["English"], | ||
"thumbnail_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/a_seagull-profile_image-4d2d235688c7dc66-300x300.png", | ||
"title": "a_seagull", | ||
"started_at": "2020-03-18T17:56:00Z" | ||
} | ||
], | ||
"pagination": {} | ||
} |
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,18 @@ | ||
{ | ||
"cli": { | ||
"version": ">= 5.9.0" | ||
}, | ||
"build": { | ||
"development": { | ||
"developmentClient": true, | ||
"distribution": "internal" | ||
}, | ||
"preview": { | ||
"distribution": "internal" | ||
}, | ||
"production": {} | ||
}, | ||
"submit": { | ||
"production": {} | ||
} | ||
} |
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,12 @@ | ||
{ | ||
"command": { | ||
"publish": { | ||
"conventionalCommits": true, | ||
"message": "chore(release): publish %s [skip ci]", | ||
"allowBranch": ["main"], | ||
"registry": "https://npm.pkg.github.com" | ||
} | ||
}, | ||
"npmClient": "yarn", | ||
"version": "0.1.0" | ||
} |
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,2 @@ | ||
eas secret:create --scope project --name EXPO_PUBLIC_TWITCH_CLIENT_ID --value --type string | ||
eas secret:create --scope project --name EXPO_PUBLIC_TWITCH_CLIENT_SECRET --value --type string |
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
Oops, something went wrong.