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