From 3b87c84ae71634eb208533fdcf3a3c9744606bf7 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Sun, 7 Apr 2024 21:50:10 +0100 Subject: [PATCH] [BUG] Include .vite subdir in PUI releases (#6973) * use yarn to build * use different path annotation * fix path * include vite explicitly --- .github/workflows/qc_checks.yaml | 4 ++-- src/frontend/vite.config.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/qc_checks.yaml b/.github/workflows/qc_checks.yaml index 41817ca72b..678bd008ac 100644 --- a/.github/workflows/qc_checks.yaml +++ b/.github/workflows/qc_checks.yaml @@ -531,11 +531,11 @@ jobs: - name: Install dependencies run: cd src/frontend && yarn install - name: Build frontend - run: cd src/frontend && npm run compile && npm run build + run: cd src/frontend && yarn run compile && yarn run build - name: Zip frontend run: | cd src/backend/InvenTree/web/static - zip -r frontend-build.zip web/ + zip -r frontend-build.zip web/ web/.vite - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # pin@v4.3.1 with: name: frontend-build diff --git a/src/frontend/vite.config.ts b/src/frontend/vite.config.ts index c5b58e384d..a5c2b8abf2 100644 --- a/src/frontend/vite.config.ts +++ b/src/frontend/vite.config.ts @@ -26,7 +26,7 @@ export default defineConfig({ includePrivate: true, multipleVersions: true, output: { - file: '../../InvenTree/web/static/web/.vite/dependencies.json', + file: '../backend/InvenTree/web/static/web/.vite/dependencies.json', template(dependencies) { return JSON.stringify(dependencies); }