Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Commit 9506345

Browse files
committed
Reworked frontend build process to ensure latest build is always in python package, with console log of version on load
1 parent 5a95696 commit 9506345

12 files changed

Lines changed: 75 additions & 38941 deletions

File tree

.github/workflows/test-and-publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,20 @@ jobs:
4040
run: |
4141
poetry run python -c "import nltk; nltk.download('cmudict')"
4242
43+
# Add Node.js and Yarn setup for frontend build
44+
- name: Setup Node.js
45+
uses: actions/setup-node@v4
46+
with:
47+
node-version: '22'
48+
49+
- name: Enable Yarn
50+
run: corepack enable
51+
52+
- name: Build frontend with version sync
53+
run: |
54+
chmod +x scripts/build_frontend.sh
55+
./scripts/build_frontend.sh
56+
4357
- name: Run unit tests
4458
run: |
4559
poetry run pytest tests/unit/ -v --cov=lyrics_transcriber --cov-report=xml --cov-report=term-missing --cov-fail-under=60

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ __pycache__/
99
# C extensions
1010
*.so
1111

12+
# Frontend dist
13+
lyrics_transcriber/frontend/dist
14+
1215
# Distribution / packaging
1316
.Python
1417
build/
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)