fix: fix linter error #158
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pre Release library | |
| on: | |
| push: | |
| branches: | |
| - "**" # matches every branch | |
| - "!main" # excludes main | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: volta-cli/action@v5 | |
| - name: Install pnpm via Volta | |
| run: volta install node && volta install pnpm | |
| - name: Lint documentation UI JS package | |
| working-directory: documentation-ui | |
| run: | | |
| pnpm i --frozen-lockfile | |
| pnpm run lint | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: volta-cli/action@v5 | |
| - name: Install pnpm via Volta | |
| run: volta install node && volta install pnpm | |
| - name: Test documentation UI JS package | |
| working-directory: documentation-ui | |
| run: | | |
| pnpm i --frozen-lockfile | |
| pnpm test -- --run | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: volta-cli/action@v5 | |
| - name: Install pnpm via Volta | |
| run: volta install node && volta install pnpm | |
| - name: Build documentation UI JS package | |
| working-directory: documentation-ui | |
| run: | | |
| pnpm i --frozen-lockfile | |
| pnpm run build | |
| - name: Build storybook site | |
| working-directory: documentation-ui | |
| run: pnpm run build-storybook | |
| build_sphinx: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install UV | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| - uses: volta-cli/action@v5 | |
| - name: Install pnpm via Volta | |
| run: volta install node && volta install pnpm | |
| - name: Build documentation UI JS package | |
| working-directory: documentation-ui | |
| run: | | |
| pnpm i --frozen-lockfile | |
| pnpm run build | |
| - name: Generate UI Assets | |
| working-directory: sphinx-ui/react | |
| run: | | |
| echo "🔨 Generating UI assets..." | |
| pnpm i --frozen-lockfile | |
| pnpm run lint | |
| pnpm run build | |
| cp ./build/injectNav.iife.js ../quantinuum_sphinx/static/injectNav.iife.js | |
| cp ./build/syncTheme.iife.js ../quantinuum_sphinx/static/syncTheme.iife.js | |
| cp ./node_modules/@quantinuum/documentation-ui/dist/tokens.css ../quantinuum_sphinx/static/styles/quantinuum-ui-tokens.css | |
| pnpm exec tailwindcss --postcss ./postcss.config.mjs -i ./index.css -o ../quantinuum_sphinx/static/styles/quantinuum-ui-tailwind.css | |
| echo ✅ "Done. Generated UI assets." | |
| - name: Build | |
| working-directory: sphinx-ui | |
| run: | | |
| echo "📦 Building..." | |
| uv build | |
| echo ✅ "Done." | |
| - name: Upload PyPI distributions as artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: quantinuum-sphinx-dist | |
| path: | | |
| sphinx-ui/dist/*.tar.gz | |
| sphinx-ui/dist/*.whl | |
| if-no-files-found: error |