@@ -93,14 +93,20 @@ jobs:
93
93
cd ${{ matrix.package }}
94
94
npm run build:version
95
95
96
+ - name : Get client package version
97
+ if : matrix.package == 'client'
98
+ id : set_client_version
99
+ run : |
100
+ echo "client_version=$(jq -r .version client/package.json)" >> $GITHUB_OUTPUT
101
+
96
102
- name : ποΈ Build Client
97
103
if : matrix.package == 'client'
98
104
env :
99
105
NODE_ENV : production
100
106
EXPO_PUBLIC_SUPABASE_URL : ${{ secrets.EXPO_PUBLIC_SUPABASE_URL }}
101
107
EXPO_PUBLIC_SUPABASE_ANON_KEY : ${{ secrets.EXPO_PUBLIC_SUPABASE_ANON_KEY }}
102
- EXPO_PUBLIC_API_URL : http://56.228.14.41/api
103
- EXPO_PUBLIC_APP_VERSION : ${{ github.ref_name }}
108
+ EXPO_PUBLIC_API_URL : http://56.228.14.41/
109
+ EXPO_PUBLIC_APP_VERSION : ${{ steps.set_client_version.outputs.client_version }}
104
110
EXPO_PUBLIC_BUILD_NUMBER : ${{ github.run_number }}
105
111
EXPO_PUBLIC_BUILD_DATE : ${{ github.run_started_at }}
106
112
EXPO_PUBLIC_COMMIT_HASH : ${{ github.sha }}
@@ -227,8 +233,8 @@ jobs:
227
233
- name : π Deploy Client to S3
228
234
run : |
229
235
if [ -d "./artifacts/client-build/web/dist" ]; then
230
- aws s3 sync ./artifacts/client-build/web/dist/ s3://${{ secrets.S3_BUCKET }} --delete
231
- echo "β
Client deployed to S3"
236
+ aws s3 sync ./artifacts/client-build/web/dist/ s3://${{ secrets.S3_BUCKET }} --delete --cache-control "no-cache, no-store, must-revalidate"
237
+ echo "β
Client deployed to S3 with no-cache headers "
232
238
else
233
239
echo "β Client build not found"
234
240
fi
0 commit comments