From 418c7c256f0ede7b2bb6c720b2f33ab7031efb45 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 27 May 2022 10:11:39 +1000 Subject: [PATCH] Prep for react app --- .github/workflows/release.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef67001aca93..f103c1f3c76a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,6 +39,17 @@ jobs: sudo find ./vendor/bin/ -type f -exec chmod +x {} \; sudo find ./ -type d -exec chmod 755 {} \; + - name: Prepare React FrontEnd + run: | + git clone https://${{secrets.commit_secret}}@github.com/invoiceninja/ui.git + cd ui + git checkout main + npm i + npm run build + cp -r dist/react/* ../public/react + cd .. + rm -rf ui + - name: Prepare JS/CSS assets run: | npm i