fix: wrong directory for npm install

This commit is contained in:
arkohut 2024-07-03 18:56:32 +08:00
parent 20dae541e1
commit 9e5c7d71c8

View File

@ -18,21 +18,20 @@ jobs:
with:
python-version: "3.10"
- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
- name: Install dependencies
run: |
pip install setuptools wheel twine
npm install
- name: Build Python package
run: |
python setup.py sdist bdist_wheel
- name: Build web assets
run: |
cd web
npm install
npm run build
- name: Build Python package
run: |
python setup.py sdist bdist_wheel
- uses: actions/upload-artifact@v4
with:
name: dist