diff --git a/.github/workflows/publish_python.yml b/.github/workflows/publish_python.yml index 3c649ca5..6895566e 100644 --- a/.github/workflows/publish_python.yml +++ b/.github/workflows/publish_python.yml @@ -31,17 +31,17 @@ jobs: sudo apt-get update python -m pip install --upgrade pip pip install -r requirements.txt - pip install twine + pip install twine build npm install --legacy-peer-deps - name: Sync version from Git Tag run: | npm version ${{ github.ref_name }} --no-git-tag-version - - name: Build tarball + - name: Build distributions run: | npm run build - python setup.py sdist + python -m build - name: Publish package to NPM run: | diff --git a/README.md b/README.md index f75eecf7..b3b66ff4 100644 --- a/README.md +++ b/README.md @@ -147,13 +147,13 @@ git push origin ``` $ npm run build ``` -2. Create a Python tarball +2. Create a Python tarball and wheel ``` - $ python setup.py sdist + $ python -m build ``` - This distribution tarball will get generated in the `dist/` folder + These distribution files will get generated in the `dist/` folder 3. Test your tarball by copying it into a new environment and installing it locally: