diff options
author | Hailey <me@haileyok.com> | 2024-04-03 20:59:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 20:59:33 -0700 |
commit | 8e393b16f502ca201393d1fd585c870fee8a4fe9 (patch) | |
tree | f7132f60173434f9ae2344fa359f2a5e3b7446d1 /.github | |
parent | b1bd7ab6e3bd9226383b6eb979857564775435ad (diff) | |
download | voidsky-8e393b16f502ca201393d1fd585c870fee8a4fe9.tar.zst |
Simplify list logic further to prevent misuse (#3334)
* simplify list logic further more simplification simplify by removing `isEmpty` use `isFetchingNextPage` everywhere for clarity change `isFetching` to `isFetchingNextPage` for clarity remove some useless `useMemo`s move `renderItem` and `keyExtractor` out of component * clean bundle size check * update deploy * adjust * adjust * one test * try now * test it * done
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/bundle-deploy-eas-update.yml | 19 | ||||
-rw-r--r-- | .github/workflows/pull-request-commit.yml | 4 |
2 files changed, 12 insertions, 11 deletions
diff --git a/.github/workflows/bundle-deploy-eas-update.yml b/.github/workflows/bundle-deploy-eas-update.yml index a4cae0044..e12690789 100644 --- a/.github/workflows/bundle-deploy-eas-update.yml +++ b/.github/workflows/bundle-deploy-eas-update.yml @@ -82,15 +82,16 @@ jobs: uses: expo/expo-github-action/fingerprint@main with: previous-git-commit: ${{ steps.base-commit.outputs.base-commit }} + args: - name: 👀 Debug fingerprint id: fingerprint-debug run: | - echo "fingerprint-diff=${{ steps.fingerprint.outputs.fingerprint-diff }}" echo "previousGitCommit=${{ steps.fingerprint.outputs.previous-git-commit }} currentGitCommit=${{ steps.fingerprint.outputs.current-git-commit }}" echo "isPreviousFingerprintEmpty=${{ steps.fingerprint.outputs.previous-fingerprint == '' }}" - if [ "${{ steps.fingerprint.outputs.fingerprint-diff }}" != '[]' ]; then + fingerprintDiff="${{ steps.fingerprint.outputs.fingerprint-diff }}" + if [[ $fingerprintDiff =~ "bareRncliAutolinking" || $fingerprintDiff =~ "expoAutolinkingAndroid" || $fingerprintDiff =~ "expoAutolinkingIos" ]]; then echo fingerprint-is-different="true" >> "$GITHUB_OUTPUT" else echo fingerprint-is-different="false" >> "$GITHUB_OUTPUT" @@ -98,37 +99,37 @@ jobs: - name: 🔨 Setup EAS uses: expo/expo-github-action@v8 - if: ${{ steps.fingerprint.outputs.fingerprint-diff == '[]' }} + if: ${{ steps.fingerprint-debug.outputs.fingerprint-is-different == 'false'}} with: expo-version: latest eas-version: latest token: ${{ secrets.EXPO_TOKEN }} - name: ⛏️ Setup Expo - if: ${{ steps.fingerprint.outputs.fingerprint-diff == '[]' }} + if: ${{ steps.fingerprint-debug.outputs.fingerprint-is-different == 'false'}} run: yarn global add eas-cli-local-build-plugin - name: 🪛 Setup jq - if: ${{ steps.fingerprint.outputs.fingerprint-diff == '[]' }} + if: ${{ steps.fingerprint-debug.outputs.fingerprint-is-different == 'false'}} uses: dcarbone/install-jq-action@v2 - name: 🔤 Compile Translations - if: ${{ steps.fingerprint.outputs.fingerprint-diff == '[]' }} + if: ${{ steps.fingerprint-debug.outputs.fingerprint-is-different == 'false'}} run: yarn intl:build - name: ✏️ Write environment variables - if: ${{ steps.fingerprint.outputs.fingerprint-diff == '[]' }} + if: ${{ steps.fingerprint-debug.outputs.fingerprint-is-different == 'false'}} run: | export json='${{ secrets.GOOGLE_SERVICES_TOKEN }}' echo "${{ secrets.ENV_TOKEN }}" > .env echo "$json" > google-services.json - name: 🏗️ Create Bundle - if: ${{ steps.fingerprint.outputs.fingerprint-diff == '[]' }} + if: ${{ steps.fingerprint-debug.outputs.fingerprint-is-different == 'false'}} run: EXPO_PUBLIC_ENV="${{ inputs.channel || 'testflight' }}" yarn export - name: 📦 Package Bundle and 🚀 Deploy - if: ${{ steps.fingerprint.outputs.fingerprint-diff == '[]' }} + if: ${{ steps.fingerprint-debug.outputs.fingerprint-is-different == 'false'}} run: yarn use-build-number bash scripts/bundleUpdate.sh env: DENIS_API_KEY: ${{ secrets.DENIS_API_KEY }} diff --git a/.github/workflows/pull-request-commit.yml b/.github/workflows/pull-request-commit.yml index d3aade3f5..24c0a7919 100644 --- a/.github/workflows/pull-request-commit.yml +++ b/.github/workflows/pull-request-commit.yml @@ -80,7 +80,7 @@ jobs: with: base_path: 'stats-base.json' pr_path: '../stats-new.json' - excluded_assets: '(.+).js.map|(.+).json|(.+).png' + excluded_assets: '(.+).chunk.js|(.+).js.map|(.+).json|(.+).png' - name: 🔍 Find old comment if it exists uses: peter-evans/find-comment@v2 @@ -99,7 +99,7 @@ jobs: const body = `<!-- webpack-analyzer comment --> | Old size | New size | Diff | |----------|----------|-----------------------| - | ${{ steps.get-diff.outputs.base_file_string }} | ${{ steps.get-diff.outputs.pr_file_string }} | ${{ steps.get-diff.outputs.diff_file_string }} (${{ steps.get-diff.outputs.percent }}% | + | ${{ steps.get-diff.outputs.base_file_string }} | ${{ steps.get-diff.outputs.pr_file_string }} | ${{ steps.get-diff.outputs.diff_file_string }} (${{ steps.get-diff.outputs.percent }}%) | `; github.rest.issues.createComment({ |