[BUG] Include .vite subdir in PUI releases (#6973)

* use yarn to build

* use different path annotation

* fix path

* include vite explicitly
This commit is contained in:
Matthias Mair 2024-04-07 21:50:10 +01:00 committed by GitHub
parent 94478a5fb2
commit 3b87c84ae7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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);
}