Skip to content

Commit

Permalink
Bump to version 3.0.3 (#35)
Browse files Browse the repository at this point in the history
* Bump to version 3.0.3

* Add publication action
  • Loading branch information
fcollonval authored Jul 1, 2021
1 parent 68e5508 commit 4a6addb
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish Package

on:
release:
types: [published]


jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install jupyter_packaging~=0.7.9 jupyterlab~=3.0 packaging setuptools twine wheel
- name: Publish the Python package
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- name: Publish the NPM package
run: |
echo $PRE_RELEASE
if [[ $PRE_RELEASE == "true" ]]; then export TAG="next"; else export TAG="latest"; fi
npm publish --tag ${TAG} --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
PRE_RELEASE: ${{ github.event.release.prerelease }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jupyterlab-kernelspy",
"version": "3.0.2",
"version": "3.0.3",
"description": "A Jupyter Lab extension for inspecting messages to/from a kernel",
"keywords": [
"jupyter",
Expand Down

0 comments on commit 4a6addb

Please sign in to comment.