@@ -33,53 +33,56 @@ jobs:
3333 with :
3434 fetch-depth : 0
3535
36- - name : Setup Bun
36+ - name : Setup Vite+
3737 if : steps.expo-token.outputs.present == 'true'
38- uses : oven-sh/setup-bun@v2
39- with :
40- bun-version-file : package.json
41-
42- - name : Setup Node
43- if : steps.expo-token.outputs.present == 'true'
44- uses : actions/setup-node@v6
38+ uses : voidzero-dev/setup-vp@v1
4539 with :
4640 node-version-file : package.json
41+ cache : true
42+ run-install : true
4743
48- - name : Cache Bun and Turbo
44+ - name : Install EAS CLI
4945 if : steps.expo-token.outputs.present == 'true'
50- uses : actions/cache@v5
51- with :
52- path : |
53- ~/.bun/install/cache
54- .turbo
55- key : ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}-${{ hashFiles('turbo.json') }}
56- restore-keys : |
57- ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}-
58-
59- - name : Install dependencies
60- if : steps.expo-token.outputs.present == 'true'
61- run : bun install --frozen-lockfile
62-
63- - name : Setup EAS
64- if : steps.expo-token.outputs.present == 'true'
65- uses : expo/expo-github-action@v8
66- with :
67- eas-version : latest
68- token : ${{ secrets.EXPO_TOKEN }}
69- packager : bun
46+ run : |
47+ eas_cli_dir="$RUNNER_TEMP/eas-cli"
48+ mkdir -p "$eas_cli_dir"
49+ node --print "JSON.stringify({ packageManager: require('./package.json').packageManager }, null, 2)" > "$eas_cli_dir/package.json"
50+ (
51+ cd "$eas_cli_dir"
52+ vp add eas-cli@latest --allow-build dtrace-provider
53+ )
54+ echo "$eas_cli_dir/node_modules/.bin" >> "$GITHUB_PATH"
55+ "$eas_cli_dir/node_modules/.bin/eas" --version
56+ pnpm_version="$(node --print "require('./package.json').packageManager.split('@').pop()")"
57+ vp_pnpm_bin="$HOME/.vite-plus/package_manager/pnpm/$pnpm_version/pnpm/bin"
58+ echo "$vp_pnpm_bin" >> "$GITHUB_PATH"
59+ "$vp_pnpm_bin/pnpm" --version
7060
7161 - name : Pull preview environment variables
7262 if : steps.expo-token.outputs.present == 'true'
7363 working-directory : apps/mobile
64+ env :
65+ EXPO_TOKEN : ${{ secrets.EXPO_TOKEN }}
7466 run : eas env:pull preview --non-interactive
7567
7668 - name : Deploy with fingerprint check
69+ id : deploy
7770 if : steps.expo-token.outputs.present == 'true'
7871 uses : expo/expo-github-action/continuous-deploy-fingerprint@main
72+ continue-on-error : true
73+ env :
74+ EXPO_TOKEN : ${{ secrets.EXPO_TOKEN }}
7975 with :
8076 profile : preview:dev
8177 branch : pr-${{ github.event.pull_request.number }}
8278 platform : all
8379 environment : preview
8480 working-directory : apps/mobile
8581 github-token : ${{ secrets.GITHUB_TOKEN }}
82+
83+ - name : Deploy update without bytecode
84+ if : steps.deploy.outcome == 'failure'
85+ working-directory : apps/mobile
86+ env :
87+ EXPO_TOKEN : ${{ secrets.EXPO_TOKEN }}
88+ run : eas update --no-bytecode --auto --branch pr-${{ github.event.pull_request.number }} --platform all --non-interactive --json --environment preview
0 commit comments