Skip to content

Pyright NPM Package update to 1.1.387 (#317) #172

Pyright NPM Package update to 1.1.387 (#317)

Pyright NPM Package update to 1.1.387 (#317) #172

Workflow file for this run

name: publish pyright-python
on:
push:
branches:
- main
paths:
- "src/pyright/_version.py"
workflow_dispatch:
jobs:
publish_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install -r dev-requirements.txt
- name: Get version
run: |
echo "NEW_VERSION=$(python .github/scripts/get_version.py --compare)" >> $GITHUB_ENV
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Upload package
run: |
twine upload -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PASS }} dist/*
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
name: 'v${{ env.NEW_VERSION }}'
tag_name: 'v${{ env.NEW_VERSION }}'