Skip to content

Commit

Permalink
Bundle dashboard v2 inside v1 build
Browse files Browse the repository at this point in the history
  • Loading branch information
G4brym committed Jan 14, 2024
1 parent b86e22b commit 5750b0c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ jobs:
run: echo "RELEASE_VERSION=0.0.1" >> $GITHUB_ENV
- name: Apply new version
run: node worker/config/preparePublish.js
- name: Install dashboard modules
run: cd packages/dashboard && npm install
- name: Build dashboard
run: cd packages/dashboard && npm run build
- name: Install worker modules
run: cd worker && npm install
run: make build-dashboard
- name: Build worker
run: cd worker && npm run build
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
build-dashboard:
rm -rf packages/dashboard/dist/
rm -rf packages/dashboard-v2/dist/
rm -rf dist/

cd packages/dashboard/ && \
npm install && \
npm run build

cd packages/dashboard-v2/ && \
npm install && \
npm run build

cp packages/dashboard/dist/ dist/
cp packages/dashboard-v2/dist/spa/ dist/v2/

0 comments on commit 5750b0c

Please sign in to comment.