Skip to content

Commit cd51fa0

Browse files
committed
Use the new build command to generate the wheel
1 parent 9004221 commit cd51fa0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@ jobs:
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip
23-
pip install packaging setuptools twine wheel
23+
pip install twine wheel build
2424
- name: Publish the Python package
2525
env:
2626
TWINE_USERNAME: __token__
2727
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
2828
run: |
29-
python setup.py sdist bdist_wheel
29+
python -m build
3030
twine upload dist/*
3131
- name: Publish the NPM package
3232
run: |
33+
cd js
3334
echo $PRE_RELEASE
3435
if [[ $PRE_RELEASE == "true" ]]; then export TAG="next"; else export TAG="latest"; fi
3536
npm publish --tag ${TAG} --access public

0 commit comments

Comments
 (0)