File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Package
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+
8
+ jobs :
9
+ deploy :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - name : Install node
14
+ uses : actions/setup-node@v1
15
+ with :
16
+ node-version : ' 14.x'
17
+ registry-url : ' https://registry.npmjs.org'
18
+ - name : Install Python
19
+ uses : actions/setup-python@v2
20
+ with :
21
+ python-version : ' 3.x'
22
+ - name : Install dependencies
23
+ run : |
24
+ python -m pip install --upgrade pip
25
+ pip install jupyter_packaging~=0.7.9 jupyterlab~=3.0 packaging setuptools twine wheel
26
+ - name : Publish the Python package
27
+ env :
28
+ TWINE_USERNAME : __token__
29
+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
30
+ run : |
31
+ python setup.py sdist bdist_wheel
32
+ twine upload dist/*
33
+ - name : Publish the NPM package
34
+ run : |
35
+ echo $PRE_RELEASE
36
+ if [[ $PRE_RELEASE == "true" ]]; then export TAG="next"; else export TAG="latest"; fi
37
+ npm publish --tag ${TAG} --access public
38
+ env :
39
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
40
+ PRE_RELEASE : ${{ github.event.release.prerelease }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " jupyterlab-kernelspy" ,
3
- "version" : " 3.0.2 " ,
3
+ "version" : " 3.0.3 " ,
4
4
"description" : " A Jupyter Lab extension for inspecting messages to/from a kernel" ,
5
5
"keywords" : [
6
6
" jupyter" ,
You can’t perform that action at this time.
0 commit comments