File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 cache : ' npm'
2020 # Path to the lock file needs to be specified explicitly as it is not in the root of the repository
2121 cache-dependency-path : ' documentation-ui/package-lock.json'
22- - run : |
23- cd documentation-ui
22+ - name : Lint and build documentation UI JS package
23+ working-directory : documentation-ui
24+ run : |
2425 npm ci
2526 npm run lint
2627 npm run build
Original file line number Diff line number Diff line change @@ -22,13 +22,17 @@ jobs:
2222 cache : ' npm'
2323 # Path to the lock file needs to be specified explicitly as it is not in the root of the repository
2424 cache-dependency-path : ' documentation-ui/package-lock.json'
25- - run : |
26- cd documentation-ui
25+ - name : Lint and build documentation UI JS package
26+ working-directory : documentation-ui
27+ run : |
2728 npm ci
2829 npm run lint
2930 npm run build
3031
31- - run : npx semantic-release
32+ - name : Release documentation UI JS package
33+ working-directory : documentation-ui
34+ run : |
35+ npx semantic-release
3236 env :
3337 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3438 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
4347 with :
4448 python-version : " 3.12"
4549 - name : Generate UI Assets
50+ working-directory : sphinx-ui/react
4651 run : |
47- cd sphinx-ui/react/
4852 echo "🔨 Generating UI assets..."
4953 npm update @quantinuum/documentation-ui
5054 npm install
5559 npx tailwindcss --postcss ./postcss.config.cjs -i ./index.css -o ../quantinuum_sphinx/static/styles/quantinuum-ui-tailwind.css
5660 echo ✅ "Done. Generated UI assets."
5761 - name : Build and Publish to PyPI
62+ working-directory : sphinx-ui
5863 env :
5964 PYPI_USERNAME : ${{ secrets.PYPI_USERNAME }}
6065 PYPI_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments