From 379656bc2b264376b2d9867d26498f25b043c4a3 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 25 Jul 2024 08:23:16 +1000 Subject: [PATCH] Updates for build info for react release --- .github/workflows/react_release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/react_release.yml b/.github/workflows/react_release.yml index c4d6f63994aa..68ee2fc25cd4 100644 --- a/.github/workflows/react_release.yml +++ b/.github/workflows/react_release.yml @@ -38,6 +38,9 @@ jobs: sudo php artisan cache:clear sudo find ./vendor/bin/ -type f -exec chmod +x {} \; sudo find ./ -type d -exec chmod 755 {} \; + - name: Set current date to variable + id: set_date + run: echo "current_date=$(date '+%Y-%m-%d')" >> $GITHUB_ENV - name: Prepare React FrontEnd run: | @@ -46,6 +49,7 @@ jobs: git checkout develop cp .env.example .env cp ../vite.config.ts.react ./vite.config.js + sed -i '/"version"/c\ "version": " Latest Build - ${{ env.current_date }}",' package.json npm i npm run build cp -r dist/* ../public/