Skip to content

Commit 4a6addb

Browse files
authored
Bump to version 3.0.3 (#35)
* Bump to version 3.0.3 * Add publication action
1 parent 68e5508 commit 4a6addb

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

.github/workflows/publish.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jupyterlab-kernelspy",
3-
"version": "3.0.2",
3+
"version": "3.0.3",
44
"description": "A Jupyter Lab extension for inspecting messages to/from a kernel",
55
"keywords": [
66
"jupyter",

0 commit comments

Comments
 (0)