Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ jobs:
cache: 'npm'
# Path to the lock file needs to be specified explicitly as it is not in the root of the repository
cache-dependency-path: 'documentation-ui/package-lock.json'
- run: |
cd documentation-ui
- name: Lint and build documentation UI JS package
working-directory: documentation-ui
run: |
npm ci
npm run lint
npm run build
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ jobs:
cache: 'npm'
# Path to the lock file needs to be specified explicitly as it is not in the root of the repository
cache-dependency-path: 'documentation-ui/package-lock.json'
- run: |
cd documentation-ui
- name: Lint and build documentation UI JS package
working-directory: documentation-ui
run: |
npm ci
npm run lint
npm run build

- run: npx semantic-release
- name: Release documentation UI JS package
working-directory: documentation-ui
run: |
npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -43,8 +47,8 @@ jobs:
with:
python-version: "3.12"
- name: Generate UI Assets
working-directory: sphinx-ui/react
run: |
cd sphinx-ui/react/
echo "🔨 Generating UI assets..."
npm update @quantinuum/documentation-ui
npm install
Expand All @@ -55,6 +59,7 @@ jobs:
npx tailwindcss --postcss ./postcss.config.cjs -i ./index.css -o ../quantinuum_sphinx/static/styles/quantinuum-ui-tailwind.css
echo ✅ "Done. Generated UI assets."
- name: Build and Publish to PyPI
working-directory: sphinx-ui
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
Expand Down