test npm build and publish #55
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and publish python package | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
# build-and-publish-py-package: | |
# runs-on: ubuntu-latest | |
# defaults: | |
# run: | |
# working-directory: ./client | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: actions/setup-python@v4 | |
# with: | |
# python-version: "3.8" | |
# - name: Build wheel | |
# run: pip install build && python -m build | |
# - name: Publish to PyPI | |
# uses: pypa/gh-action-pypi-publish@release/v1 | |
# with: | |
# password: ${{ secrets.PYPI_API_TOKEN }} | |
# packages-dir: ./client/dist | |
build-and-publish-ts-package: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./ts-client | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
- name: Set version from the gittag | |
run: npm version ${{ github.ref_name }} | |
- name: Install dependencies | |
run: npm install | |
- name: Build package | |
run: npm run build | |
- name: Publish to npm | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_TOKEN }} |