Skip to content

Commit 5593fb2

Browse files
authored
build(CI): fix up working directory paths for semantic-release and Pypi (#6)
fix up working directory paths for semantic-release and Pypi release steps as well
1 parent 76db4fc commit 5593fb2

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/pre-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ jobs:
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

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff 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 }}
@@ -43,8 +47,8 @@ jobs:
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
@@ -55,6 +59,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)