diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2cadbd45..775fc48c 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -877,6 +877,40 @@ jobs: EOF - run: | twine upload --repository pypi *.whl + npmjs-publish: + name: "Upload STT packages to npmjs.com" + runs-on: ubuntu-20.04 + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + needs: [repackage-nodejs-allplatforms] + steps: + - uses: actions/setup-node@v2 + with: + node-version: 12 + registry-url: 'https://registry.npmjs.org' + - uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Compute tag for npm from git tag + id: compute-npm-tag + run: | + pip install semver + cat <